Given two version numbers such as 0.20.7 and 0.20.8 you want to know which comes first. The version numbers are a few integer numbers that are concatenated by dots …
Given a binary search tree and a target, find out if there are any two numbers in the BST that sums up to this target. Given a Binary Search …
Getting a HHKB and being excited for a few days? Sooner or later, you ‘ll realise that it is not very convenient as you need to remember the combination …
Given an array that has n integers, find a sub array of given length k that has the maximum average value. Write a function that outputs the maximum average …
Given an array of sorted integers and a target, find the index of the target in the array, if not found, return -1. Given a sorted (in ascending order) …
Given a string S, return the “reversed” string where all characters that are not a letter stay in the same place, and all letters reverse their positions. Given a …