I’m getting WA after submission but for the given cases it is working fine.
Please tell me what is wrong with this code.
code link: https://ide.codingblocks.com/s/233481
Are they same(divide and conquer)
Not working.Still getting WA
It worked!!! But what was the wrong with my code?
@SWIFTY i am not sure myself, but you can cross reference this code to see if you missed any corner cases!