401. Binary Watch(Solution || Leetcode easy || Java)A binary watch has 4 LEDs on the top to represent the hours (0–11), and 6 LEDs on the bottom to represent the minutes (0–59). Each LED…Jan 2, 2023Jan 2, 2023
338. Counting Bits(Solution || Leetcode easy || Java)Given an integer n, return an array ans of length n + 1 such that for each i (0 <= i <= n), ans[i] is the number of 1's in the binary…Dec 20, 2022Dec 20, 2022
191. Number of 1 Bits(Solution || Leetcode easy || Java)Write a function that takes an unsigned integer and returns the number of ‘1’ bits it has (also known as the Hamming weight).Dec 20, 2022Dec 20, 2022
190. Reverse Bits(Solution || Leetcode easy || Java)Reverse bits of a given 32 bits unsigned integer.Dec 20, 2022Dec 20, 2022
136. Single Number(Solution || Leetcode easy || Java)Given a non-empty array of integers nums, every element appears twice except for one. Find that single one.Dec 19, 2022Dec 19, 2022
Finding Square root using Binary SearchToday we are going to see how we can find the square root of any number without using the inbuilt method.Dec 12, 2022Dec 12, 2022