Loading...
Loading...
Loading Curriculum...
Loading Subject...
Loading Topic...
Loading Lesson...
Loading Lab...
Edge cases are the specific scenarios that occur at the extreme ends of the problem constraints. Most "Wrong Answer" (WA) results are due to unhandled edge cases.
Before submitting, always ask yourself: "Will my code work if N is 0? What if it's 10^5? What if all elements are negative?". This habit saves a lot of time and penalty in contests.