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.
Range Minimum Query
Range Minimum Query
Sort by
recency
|
14 Discussions
|
Please Login in order to post a comment
Could you please add Python as a possible programming language?
Hi, I have got a WA at case #4. But I check every output of my code with the answer, they are the same. Can someone know what happened?
Here is my code
Maybe this'll be helpful for those using haskell who have issues with time limits and reading input. This is my go to for reading a bunch of ints:
I am getting timeout for test cases 5, 6, 7. When I debugged with the inputs I've seen that my timeout occurs while creating the Segmentation Tree.
I have been looking into the code for 2 days and I still could not figure out what is the cause of this.
You can find my tree construction code below. Any help is appreciated.
ll is the input array. Leaf and Node needs no explainations I believe.
I am getting timeout for test cases 5, 6, 7. When I debugged with the inputs I've seen that my timeout occurs while creating the Segment Tree.
I have been looking into the code for 2 days and I still could not figure out what is the cause of this.
You can find my tree construction code below. Any help is appreciated.
ll is the input array. Leaf and Node needs no explainations I believe.