Press "Enter" to skip to content

Posts tagged as “Interview question”

How to Print N Integers in String Order

Ajk 0

So the purpose of this question is to print out N integers in String Order. For example, if N is 1000, then we will output: 1, 10, 100, 1000, 101,…

How to Convert a Roman Number to Integer

Ajk 0

This question came to my attention from one of my readers a few days ago. They had been asked this question in an online interview and implied that it was…

Find next higher number with same digits.

Ajk 2

This was asked to me in an interview a long long time ago. The question seems easy at first sight – Find next higher number with the same digits: i.e.:…

How to convert decimals to binary

Ajk 0

Today we are going to take a look at a fun little question and learn how to convert decimals to binary 🙂 First off, to clarify any confusion we have…