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 ...
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 ...
Reverse a linked list from position m to n. Do it in-place and in one-pass. For example: Given 1->2->3->4->5->NULL, m = 2 and n = 4, return 1->4->3->2->5->N...
You are playing the following Bulls and Cows game with your friend: You write down a number and ask your friend to guess what the number is. Each time your fr...