---
title: "Comment by Malavi Pande on \"A Tale of Debugging: The Competitive Programmer Approach\" | Hashnode"
description: "I know that something happen inside a computer while we practice coding in the leetcode and hacker rank but this explanation is next level. Thank you Alberto su"
url: "https://hashnode.com/posts/a-tale-of-debugging-the-competitive-programmer-approach/63f268d0e20f289c69fddb97/comment/63f427a83c8949b64ddccd2b"
---

[Discussion](https://hashnode.com/posts/a-tale-of-debugging-the-competitive-programmer-approach/63f268d0e20f289c69fddb97)

Comment [A Tale of Debugging: The Competitive Programmer Approach](https://hashnode.com/posts/a-tale-of-debugging-the-competitive-programmer-approach/63f268d0e20f289c69fddb97)

[Feb 21, 2023](https://hashnode.com/posts/a-tale-of-debugging-the-competitive-programmer-approach/63f268d0e20f289c69fddb97/comment/63f427a83c8949b64ddccd2b)

I know that something happen inside a computer while we practice coding in the leetcode and hacker rank but this explanation is next level. Thank you Alberto such a great explanation !!!

The problem with the first approach is it is giving you the expected value index but not which where it first appear so that's why we introducing the variable to keep the track of the index if duplicates exist!!

[Alberto Gonzalez](https://hashnode.com/@albeXL)

[Feb 21, 2023](https://hashnode.com/posts/a-tale-of-debugging-the-competitive-programmer-approach/63f268d0e20f289c69fddb97/comment/63f427a83c8949b64ddccd2b#reply-63f46aef91a509b61ed031b3)

You know someone actually reads your article when they answer your questions in it. Thank you, for reading and answering!

I plan on making an article explaining some interesting and non-conventional usages of binary search. Let me know if it sounds like a good idea.

[Malavi Pande](https://hashnode.com/@Malavi)

[Feb 21, 2023](https://hashnode.com/posts/a-tale-of-debugging-the-competitive-programmer-approach/63f268d0e20f289c69fddb97/comment/63f427a83c8949b64ddccd2b#reply-63f4f65875350fc1ff690de4)

[Alberto Gonzalez](https://hashnode.com/@albeXL) Sounds super exiting go a head
