-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Numbers
Mission Peace edited this page Oct 12, 2016
·
2 revisions
- Given a large number tell where it is an aggregate number or not - AggregateNumber.java
- Given an array of sorted numbers, tell if there are 3 numbers which form arithmetic progression - ArithemeticProgressionExists.java
- Given two numbers in form of an array, multiply them - ArrayMultiplication.java
- Given a number n and k, find binomial coefficient of n to k - BinomialCoefficient.java
- Covert a decimal number into any other base N < 10 - ConvertToBaseN.java
- Given a number n, find counts of 2 from 1 to n - CountNoOf2s.java
- Given a number n, find number of numbers which does not have digit 4 in them - CountNumbersNotIncluding4.java
- Given a dividend and a divisor, return remainder and quotient - DivisionWithoutDivisionOperator.java
- Given two numbers find their GCD(greatest common divisor) - EuclideanAlgoForGCD.java
- Given an array of numbers, generate a signature where D represent decrease and I represents increase. Now given Ds and Is generate pattern of number - GenerateSignature.java
- Given an array, find elements combining which forms largest multiple of 3 - https://github.com/mission-peace/interview/blob/master/src/com/interview/number/LargestMultipleOf3inArray.java
- Given a number n, tell if this number is a lucky number - LuckyNumbers.java
- Given an array of 3 numbers, find their median - https://github.com/mission-peace/interview/blob/master/src/com/interview/number/MedianOf3Number.java
- Write a program to determine whether n/2 distinctinctive pairs can be formed from given n integers where n is even and each pair's sum is divisible by given k - NBy2PairSumToK.java
- Given an array representing a number, find next larger palindrome which can be formed - NextLargestPalindrome.java
- Given a chinese number which never has 4, convert it into decimal format - NotIncluding4.java
- Given an array representing a number, return a new array consisting of same numbers but larger than this number - PermutationBiggerThanNumber.java
- Given two arrays representing numbers, convert first array into number which is next larger than second array - PermutationLargerThanGivenArray.java
- Calculate power function using divide and conquer - PowerFunction.java
- Given an array of numbers, arrange them in a way that yields the largest value - RearrangeNumberInArrayToFormLargestNumber.java
- Russian peasant multiplication - RussianPeasantMultiplication.java
- Smallest number greater than given number but all digits in increasing order - SmallestNumberGreaterThanGiveNumberIncreasingSequence.java
- Calculate square root of a number without using any library - SquareRoot.java
- Given a positive integer n, generate all possible unique ways to represent n as sum of positive integers -https://github.com/mission-peace/interview/blob/master/src/com/interview/number/UniquePartitionOfInteger.java
- A man is walking up a set of stairs. He can either take 1 or 2 steps at a time. Given n number of steps,find out how many combinations of steps he can take to reach the top of the stairs - NumberOfCombinationsForStairs.java
- Given a number, find number of trailing zeros in the factorial of this number - Trailing0sinFactorial.java
- Factorial of a large number - FactorialOfLargeNumber
- Find mth number in array of [1..n] where m is defined by lexicographically order - MthNumberInNSizeArray.java
- Apply +, -, /, * on given string - BasicCalculator.java