
Binary and Hexadecimal Number Systems — A Complete Guide for Low-Level Programming
When you work close to hardware—whether in C, C++, embedded systems, operating systems, or reverse...
Tag archive

When you work close to hardware—whether in C, C++, embedded systems, operating systems, or reverse...
Problem TC : (n+m) where n and m are no. of bits in num1 and num2 respectively /* use...
Given an integer number N, find the exor of the range 1 to N exor of 1 ^ 2 ^ 3 ^4 ^.....N; Brute...
Problem We will use the concept of buckets, we want to make sure that two numbers that appear only...
Problem We have to find the number that is present only once. Brute force approach will be to use...
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...

Problem statement The SuperBowl Lottery is about to commence, and there are several...

You are given two numbers A and B. The task is to count the number of bits needed to be flipped to...
Welcome back to more work on Bit Manipulation in preparation for that big job interview you’re going...