Tip 1 : Good Command over Data Structure
Tip 2 : Prepare Core Subjects
Tip 3 : Have at least 1 project
Tip 1 : Single Page resume with good Projects in it.
Tip 2 : Short and Crisp resume.
2 Coding Question were given to be solved in 1 hr . Both questions were medium level .



Let the encoded sequence be 121,
The first way to decode 121 is:
1 = A
2 = B
1 = A
Thus, the decoded string will be ABA.
The second way to decode 121 is:
12 = L
1 = A
Thus, the decoded string will be LA.
The third way to decode 121 is:
1 = A
21 = U
Thus, the decoded string will be AU.
So, there will be 3 ways to decode the sequence 121 i.e. [(ABA), (LA), (AU)].
The input sequence will always have at least 1 possible way to decode.
As the answer can be large, return your answer modulo 10^9 + 7.
Can you solve this using constant extra space?
Simply try building a recursive solution first and then change it to iterative one.
This problem is recursive and can be broken into sub-problems. We start from the end of the given digit sequence. We initialize the total count of decodings as 0. We recur for two subproblems.
1) If the last digit is non-zero, recur for remaining (n-1) digits and add the result to the total count.
2) If the last two digits form a valid character (or smaller than 27), recur for remaining (n-2) digits and add the result to the total count.



A naive approach is to iterate for every turn and distribute candies accordingly till candies are finished. Here Naive solution was also accepted.

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