Vineeth Chivukulavineethchivukula.hashnode.dev·Jun 29, 2024Solving Single NumberTo see the question, click here. Naive Approach To find the single element, we can first sort the array and then check for the single element. This approach works because each element appears twice except for one, and when the array is sorted, these ...single number
Chetan Dattachetan77.hashnode.dev·Dec 6, 2023Arrays Easy - Part III (XOR)268. Missing Number Problem Statement Given an array nums containing n distinct numbers in the range [0, n], return the only number in the range that is missing from the array. (link) Example 1: Input: nums = [3,0,1] Output: 2 Explanation: n = 3 sinc...Leetcodemax consecutive ones