Article

Coding Interview Question: Given an array containing all the numbers from 1 to n except two, find the two missing numbers. Click for the solution.

Article

Article

Coding Interview Question: Given a list of bytes a, each representing one byte of a larger integer, and an integer b, find a % b. Click for the solution.

Article

Coding Interview Question: Given two integers, write a function to sum the numbers without using any arithmetic operators. Click for the solution.

Article

Coding Interview Question: Given two integers, write a function that swaps them without using any temporary variables. Click for the solution.

Article

Coding Interview Question: Given two integers, determine whether or not their binary representations differ by a single bit. Click for the solution.

Article

Coding Interview Question: Given a number, write a function to rotate the bits (ie circular shift). Click for the solution.

Article

Coding Interview Question: Given an integer, compute the number of ones in the binary representation of the number. Click for the solution.

© Byte by Byte 2016-2022

Sounds impossible right? It’s not!

Let me show you the RIGHT way to study for interviews so you can ace your Google Interview without breaking a sweat.

Download my FREE guide to the 50 most common coding interview questions asked at companies like Google, Facebooks, and Amazon.