Sum Two Values
Given an array of integers and a value, determine if there are any two integers in the array which sum equal to the given value.
Given an array of integers and a value, determine if there are any two integers in the array which sum equal to the given value.
Given an array (list) of intervals as input where each interval has a start and end timestamps. Input array is sorted by starting timestamps. You are required to merge overlapping intervals and...
So I'm trying to stay true to my resolution, write one or more article about algorithms and datastructure everyday to refresh my memory on how everything works.
It's been a while since I've been writing on the blog, so I've decided to start being more active and since it's been almost 15 years since I've studied this in University, it can also be a good...
The ministers of the cabinet were quite upset by the message from the Chief of Security stating that they would all have to change the four-digit room numbers on their offices.
Given a list of phone numbers, determine if it is consistent in the sense that no number is the prefix of another. Let’s say the phone catalogue listed these numbers: