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.
HackerRank in a String!
HackerRank in a String!
Sort by
recency
|
1049 Discussions
|
Please Login in order to post a comment
C++ solution:
C#
public static string hackerrankInString(string s) { string contains = "hackerrank";
}
In this example, PacMan is at the position (35,35) and the food is at the position (35,1). The AStar path length between (35,35) and (35,1) is 210. All the nodes encountered between (35,35) and (35,1) both included is printed in the next 211 lines.
The test case for this problem has an issue; it doesn't cover the scenario where 'h' appears multiple times.
R Solution