Press "Enter" to skip to content

Posts tagged as “Integer”

Reverse Integer

Ajk 0

Today we are going to be visiting a very simple problem, which need some basic maths though. Given an integer, reverse it and return the reversed integer. Sample runs are:…

Print all sets of factors

Ajk 7

Today we will take a look at a problem I personally got asked in an interview! It is called “Print all sets of factors”. Basically, we will try to write…

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,…