Browse our collection of articles on various topics related to IT technologies. Dive in and explore something new!
Problem We have to find the number that is present only once. Brute force approach will be to use...
Problem TC : (n+m) where n and m are no. of bits in num1 and num2 respectively /* use...
Problem We will use the concept of buckets, we want to make sure that two numbers that appear only...
Problem Backtracking approach: TC:(2^n) i.e. exponential time complexity (Since we are left with...
Swap two numbers without using the temp variable a = a^b b = a^b = (a^b)^b = a ( since...
Given an integer number N, find the exor of the range 1 to N exor of 1 ^ 2 ^ 3 ^4 ^.....N; Brute...