We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
we can think this as all strings starting with 1st character and adding the next character to it and so on.
Example if we have a string 12345.
The all possible strings are
1
12
123
1234
12345
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Contacts
You are viewing a single comment's thread. Return to all comments →
we can think this as all strings starting with 1st character and adding the next character to it and so on. Example if we have a string 12345. The all possible strings are 1 12 123 1234 12345