Tip 1: Learn everything in detail, starting from the basics.
Tip 2: Build as many projects as you can.
Tip 3: Practice DSA every day.
Tip 1: Have strong projects.
Tip 2: Don’t include things you haven’t done, or it could put you in a difficult situation.

Let 'S' = "adddef".
Alex could have been trying to type:
- "adef" (second and third 'd' are extra)
- "addef" (second 'd' is extra)
- "addef" (third 'd' is extra)
- "adddef" (no extra characters)
So we have 3 distinct possibilities: "adef", "addef", and "adddef".
Therefore, the answer is 3.



Can you solve each query in O(logN) ?
What is the difference between SQL and NoSQL? (Learn)
What are authentication and authorization in an application?
What are sorting algorithms, and which one is the best? (Learn)

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
How do you remove whitespace from the start of a string?