Monthly Archives: February 2017

LeetCode Jump Game

LeetCode Jump Game Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represents your maximum jump length at that position. Determine if you are able to reach the last... Read More

LeetCode 4Sum II

LeetCode 4Sum II Given four lists A, B, C, D of integer values, compute how many tuples (i, j, k, l) there are such that A + B + C + D is zero. To make problem a bit easier, all A, B, C, D have same length of N where 0 ≤ N ≤ 500. All integers are... Read More