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.
in the first expression it will give an answer with counting from the start (for example if after 6th character it will find a character that you want, it will give its index counting from the start of s)
but in second one it will give the index of character with counting its index from given slice
HackerRank in a String!
You are viewing a single comment's thread. Return to all comments →
in the first expression it will give an answer with counting from the start (for example if after 6th character it will find a character that you want, it will give its index counting from the start of s) but in second one it will give the index of character with counting its index from given slice