• Courses
  • Tutorials
  • Jobs
  • Practice
  • Contests

GATE | Sudo GATE 2020 Mock I (27 December 2019) | Question 24

Both Mr. Mithlesh Upadhyay and You play a game:
  1. Mr. Mithlesh Upadhyay gives you a constant n.
  2. You choose a word w in the language of length at least n.
  3. Mr. Mithlesh Upadhyay gives you x, y, and z with xyz = w, |xy|≤n, and y not empty.
  4. Now you pick r.
  5. Mr. Mithlesh Upadhyay asserts that xyrz is also in the language.
  6. If Mr. Mithlesh Upadhyay is wrong, you win.
In case, if you win the game, what is the minimum possible value of your r for the language {0i1j | i >= j} ?

(A)

0

(B)

2

(C)

3

(D)

Mr. Mithlesh Upadhyay won the game for given language.

Answer

Please comment below if you find anything wrong in the above post
Feeling lost in the world of random DSA topics, wasting time without progress? It's time for a change! Join our DSA course, where we'll guide you on an exciting journey to master DSA efficiently and on schedule.
Ready to dive in? Explore our Free Demo Content and join our DSA course, trusted by over 100,000 geeks!

Last Updated :
Share your thoughts in the comments