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.
- Prepare
- Algorithms
- Search
- Sorted Subsegments
- Discussions
Sorted Subsegments
Sorted Subsegments
Sort by
recency
|
35 Discussions
|
Please Login in order to post a comment
Here is my solution in java, Python, C, C++, Csharp HackerRank Sorted Subsegments Problem Solution
Here is the solution of Sorted Subsegments Click Here
https://zeroplusfour.com/sorted-subsegments-hackerrank-solution/
Here's how I did in all languages Java 8 , C++ , C , Python 3, Python 2.
In sortedsubsegments function, what are all the arguments? is a parameter is array?
I got 5 test cases right, others were wrong because the code was taking more time and did not execute in the required time (time limit exceeded error). Can somebody please help me to optimize my code? Here's my code: