We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Just a quick algo for reference Time complexity: O(logn) Space complexity: O(1)