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.
if you code with j = 10 , this code is not general but when you use j ==strlen(h) then j will depends on the length of the str which is more general to work with other inputs also .
Tip : We try to generalize our program by which we don't need to change our code according to our users .
hope you understood , if not then shoot an comment
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
HackerRank in a String!
You are viewing a single comment's thread. Return to all comments →
if you code with j = 10 , this code is not general but when you use j ==strlen(h) then j will depends on the length of the str which is more general to work with other inputs also .
Tip : We try to generalize our program by which we don't need to change our code according to our users . hope you understood , if not then shoot an comment