πŸ“Š Machine Learning
Q. What will be the result when non greedy repetition is used on the pattern /a+?b/ ?
  • (A) Matches the letter b preceded by the fewest number of a’s possible
  • (B) Matches the letter b preceded by any number of a
  • (C) Matches letter a preceded by letter b, in the stack order
  • (D) None of the mentioned
πŸ’¬ Discuss
βœ… Correct Answer: (A) Matches the letter b preceded by the fewest number of a’s possible

Explanation: Using non greedy repetition may not always produce the results you expect. /a+?b/ matches the letter b preceded by the fewest number of a’s possible.

Explanation by: Mr. Dubey
Using non greedy repetition may not always produce the results you expect. /a+?b/ matches the letter b preceded by the fewest number of a’s possible.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
101
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
83%
Success Rate