Homepage
Sign in
Get started
Solving Algorithmic Problems
Arrays
Binary Search
Bit Manipulation
Follow
Latest Stories
Solving Algorithmic Problems: Find a Duplicate in an Array
Solving Algorithmic Problems: Find a Duplicate in an Array
Given an array of n + 1 integers between 1 and n, find one of the duplicates. If there are multiple possible answers…
Teiva Harsanyi
Sep 30
Solving Algorithmic Problems: Square Root of an Integer
Solving Algorithmic Problems: Square Root of an Integer
Implement sqrt(int x). If x is not a perfect square, return floor(sqrt(x)).
Teiva Harsanyi
Sep 30
Solving Algorithmic Problems: Max Distance in an Array
Solving Algorithmic Problems: Max Distance in an Array
Given an array A of integers, find the maximum of j — i subjected to the constraint of A[i] <= A[j].
Teiva Harsanyi
Sep 28
Solving Algorithmic Problems: Possible Hotel Bookings
Solving Algorithmic Problems: Possible Hotel Bookings
A hotel manager has to process N bookings of rooms for the next season. His hotel has K rooms. Bookings contain an arrival date and…
Teiva Harsanyi
Sep 26
Solving Algorithmic Problems: Largest Number
Solving Algorithmic Problems: Largest Number
Given a list of non negative integers, arrange them such that they form the largest number.
Teiva Harsanyi
Sep 24
Solving Algorithmic Problems: Noble Integer
Solving Algorithmic Problems: Noble Integer
Given an integer array, find if an integer p exists in the array such that the number of integers greater than p in the array equals to p.
Teiva Harsanyi
Sep 23
Solving Algorithmic Problems: Single Number
Solving Algorithmic Problems: Single Number
Given an array of integers, every element appears thrice except for one which occurs once. Find that element which does not appear thrice.
Teiva Harsanyi
Sep 23
Solving Algorithmic Problems: Maximum Sum of a Contiguous Subarray
Solving Algorithmic Problems: Maximum Sum of a Contiguous Subarray
Find the contiguous subarray within an array (containing at least one number) which has the largest sum.
Teiva Harsanyi
Sep 22
Solving Algorithmic Problems: Minimum Number of Steps in an Infinite Grid
Solving Algorithmic Problems: Minimum Number of Steps in an Infinite Grid
You are given a sequence of points and the order in which you need to cover the points. Give the minimum number of steps…
Teiva Harsanyi
Sep 22
About solvingalgo
Latest Stories
Archive
About Medium
Terms
Privacy