C#C
C#3y ago
morry329#

❔ Returns the left pointer, why?

https://leetcode.com/problems/first-bad-version/solutions/3403742/binary-search-solution-for-c-complexity-explanation/?envType=study-plan&id=level-1&languageTags=csharp
It is about this LC solution. I was not able to understand why the FirstBadVersion returns the leftPointer variable in the end, could anyone explain that to me?
LeetCode
View kimgim's solution of First Bad Version on LeetCode, the world's largest programming community.
Was this page helpful?