Gautam Sihag’s Post

Why everything looks correct isn't enough ? I was solving a leetcode problem today.I thought I had it all figured out because the logic was perfect and it worked on almost every test case. I converted the array elements into a number, manipulated it, and then converted back. On paper, it seemed fine until a few edge test cases failed. The reason was integer overflow. My "correct" solution was fundamentally flawed. #DSA #LeetCode #CodingLessons #ProblemSolving #Programming #LessonLearnt

To view or add a comment, sign in

Explore content categories