Neelesh JangaQ-268 LeetCode: Missing Number Calculation in JavaGiven 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.3 min read·Jan 22, 2024----
Neelesh JangaQ-263 LeetCode: Ugly Number Detection in JavaAn ugly number is a positive integer whose prime factors are limited to 2, 3, and 5.3 min read·Jan 18, 2024----
Neelesh JangaQ-258 LeetCode: Digital Root Calculation Algorithm in JavaGiven an integer num, repeatedly add all its digits until the result has only one digit, and return it.3 min read·Jan 16, 2024----
Neelesh JangaQ-232 LeetCode: Implement Queue using StacksImplement a first in first out (FIFO) queue using only two stacks. The implemented queue should support all the functions of a normal queue…3 min read·Jan 14, 2024----
Neelesh JangaQ-231 LeetCode: Power of TwoGiven an integer n, return true if it is a power of two. Otherwise, return false. An integer n is a power of two, if there exists an…2 min read·Jan 12, 2024----
Neelesh JangaQ-225 LeetCode: Implement Stack using QueuesImplement a last-in-first-out (LIFO) stack using only two queues. The implemented stack should support all the functions of a normal stack…3 min read·Jan 10, 2024----
Neelesh JangaQ-222 LeetCode: Count Complete Tree NodesGiven the root of a complete binary tree, return the number of the nodes in the tree.2 min read·Jan 8, 2024----
Neelesh JangaQ-34 LeetCode: Find First and Last Position of Element in Sorted ArrayGiven an array of integers nums sorted in non-decreasing order, find the starting and ending position of a given target value.3 min read·Jan 6, 2024----
Neelesh JangaQ-202 LeetCode: A Recursive Journey to Discover Happy Numbers in JavaWrite an algorithm to determine if a number n is happy.3 min read·Jan 4, 2024----
Neelesh JangaQ-191 LeetCode: Counting Set Bits using Hamming Weight Algorithm for Unsigned Integers in JavaWrite a function that takes the binary representation of an unsigned integer and returns the number of ‘1’ bits it has (also known as the…3 min read·Jan 2, 2024----