Tip 1: Start with fundamental DSA problems.
Tip 2: Start giving coding contests (this is very Important).
Tip 3: At the end of 3rd year, start studying OOPs, OS, and DBMS.
Tip 1: Mention your coding profile in your Resume.
Tip 2: Add 2-3 projects so that you can explain them in your interview.
Timing: It was on the morning of 3th August 2022.
Environment: Invigilators were present in each room.



1. The array consists of only 3 distinct integers 0, 1, 2.
2. The array is non-empty.



- An encoded string will be of the form <count>[encoded_string], where the 'encoded_string' inside the square brackets is being repeated exactly 'count' times. Note that 'count' is guaranteed to be a positive integer and can be greater than 9.
- There are no extra white spaces and square brackets are well-formed.
Input: 2[a]
“a” is encoded 2 times, hence the decoded string will be "aa".
Input: 3[a2[b]]
“b” is encoded 2 times, which decodes as 3[abb]. Now, "abb" is encoded 3 times, hence decoded string will be "abbabbabb".
Timing: It was on the evening of 5th August 2022.
Environment: Invigilators were present in each room.




1. Both the strings are non-empty and are of the same length.
2. You can apply the above operations any number of times on ‘S’.
3. The operations can only be applied on the string ‘S’.
4. ‘S’ and 'R' consist of lowercase letters only.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
What is recursion?