Skip to content
Mission Peace edited this page Oct 27, 2016 · 4 revisions
  1. Given two sets of intervals. Ranges in the same set do not overlap each other. Merge these sets - AddingTwoSetOfIntervals.java
  2. Given a time(hour and min), find angle between hour and min hand - AngleBetweenHourAndMinuteHand.java
  3. Given an excel sheet kind of numbering, convert it into decimal and vice versa - ConvertNumberIntoBase26.java
  4. Given two dates in AD, find number of days between these 2 dates - DayDifferenceBetweenTwoDates.java
  5. Given a floating point number in string, convert it into actual float number - FloatPointConversion.java
  6. Given an array, find hamming distance between each pair of numbers in the array - HammingDistanceBetweenPair.java
  7. Given horizons of building in form of height and start end point, merge them into single horizon - HorizonMapping.java
  8. kth largest element in row wise and column wise sorted 2D array - KthLargestInRowiseColumnWiseSorted2DArray.java
  9. Design a load balancer where you can add,remove and find random server in O(1) time - LoadBalancers.java
  10. Given an integer, return a string which represents this integer in words - NumberToWord.java
  11. Convert a roman number into decimal number and vice versa - RomanNumberToDecimal.java
  12. Given cordinates of four points, say if they will form a square or not - FourPointsFormSquare.java
  13. Given two times in 4 digit number, find difference between them - DifferenceBetweenTwoTime.java
  14. All prime numbers before n - PrimeNumbersBeforeN.java
  15. How to give minimum number of candies to children with ratings. Every child with higher rating should get more candy then its neighbor with lower rating. Everyone should get at least one candy. CandiesProblem
  16. Given an integer array nums, return the number of range sums that lie in [lower, upper] inclusive - CountRanges.java
  17. Given a read function which supports reading only 4 bytes implement a reader which can read bytes of given size - Read4Function.java
  18. Insert interval into sorted intervals and merge if needed - InsertInterval.java
  19. Range minimum query using sparse table - SparseTableRangeMinimumQuery.java
  20. Implement parser for nested integer - IntegerListParser.java
  21. Given an array find if two numbers are at most t apart and at most k index away from each other - ContainsNumberWithinKDistance.java
Clone this wiki locally