Reverse Integer – Leetcode #7

Problem Statement This problem is from Leetcode – Reverse Integer. The problem statement in short is given below: Given a signed 32-bit integer x, return its digits reversed. If the reversed integer overflows the 32-bit signed integer range, return 0. Solution Approach – 1 We need to extract individual numbers out of the given input […]

Single Number – Leetcode #136

Problem Statement This problem is from Leetcode – Single Number. The problem statement is as below: Given an integer array where every element appears twice except one, find the single element that appears only once. Solution This problem is asking us to figure out that one integer that isn’t repeating. Lets take the Hashmap approach […]

Begin typing your search term above and press enter to search. Press ESC to cancel.

Back To Top