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.
String Function Calculation
String Function Calculation
Sort by
recency
|
68 Discussions
|
Please Login in order to post a comment
Just combine lcp with largest-rectangle-in-histogram and this exercise is solvable in 10 minutes.
C++ code is a bit too long to post here, but if anyone is interested, I posted a solution in my github repo with a nice list of tests if you want to use them.
By the way, once you solve it you can see the code in the Editorial area. It is dreadful, hackerrank should clean up code from almost 10 years ago that is C with classes mostly.
Here is my solution in java, javscript, Python, C, C++Csharp HackerRank String Function Calculation Solution
Here is the solution of String Function Calculation Click Here