## Next higher number using atmost one swap operation

Given a non-negative number num. The problem is to find the smallest number greater than num by performing atmost on swap operation between any two… Read More »

- Find minimum operations needed to make an Array beautiful
- Next greater Number than N with the same quantity of digits A and B
- Common prime factors of two numbers
- Smallest multiple of 3 which consists of three given non-zero digits
- Find largest number smaller than N with same set of digits
- Find the minimum positive integer such that it is divisible by A and sum of its digits is equal to B
- Natural Numbers
- Minimum number of cuts required to make circle segments equal sized
- Sum of all even numbers in range L and R
- Count pairs of numbers from 1 to N with Product divisible by their Sum
- Check if a number can be represented as a sum of 2 triangular numbers
- Find a permutation of 2N numbers such that the result of given expression is exactly 2K
- Find permutation of n which is divisible by 3 but not divisible by 6

Given a non-negative number num. The problem is to find the smallest number greater than num by performing atmost on swap operation between any two… Read More »

Given a non-negative number n. The problem is to find the smallest number k such that the product of digits of k is equal to… Read More »

Given a number you have to check whether there is pair of adjacent set bit or not. Examples : Input : N = 67 Output… Read More »

Before inviting for F2f rounds I was given a online coding test, which had standard PS/DS problems. After that I was invited for a day… Read More »

Given two integers a and b. The problem is to find the number of digits in the product of these two integers. Examples: Input :… Read More »

Lucky numbers are the positive integers whose decimal representations contain only the lucky digits 4 and 7. What minimum lucky number has the sum of… Read More »

Given two integers n and m. Find the longest contiguous subset in binary representation of both the numbers and its decimal value. Example 1: Input… Read More »

Round 1(2 hrs): It had two sections: 1. 50 Mcqs in 60 minutes. The questions included were related to networking, OS, quantitative aptitude, c, c++,… Read More »

Given a non-negative number n and a value k. Find the kth smallest number that can be formed using the digits of the given number… Read More »

Microsoft IDC came to our campus to recruit summer interns. The selection procedure involved a coding round, group fly followed by 3 interviews. Round 1… Read More »

Given two numbers N and K. We need to find out if ‘N’ can be written as sum of ‘K’ prime numbers. Given N <=… Read More »

Question 1 : Write a program to determine whether a given number can be expressed as sum of two prime numbers or not. For example… Read More »

Given a number n, count all distinct divisors of it. Examples: Input : 18 Output : 6 Divisors of 18 are 1, 2, 3, 6,… Read More »

Given a string that contains digits of a number. The number may contain many same continuous digits in it. The task is to count number… Read More »

Which of the following is the largest of all ? (i) 7/8 (ii) 15/16 (iii) 23/24 (iv) 31/32 (A) (i) (B) (ii) (C) (iii) (D)… Read More »