摘要:
Given a target integer T and an integer array A sorted in ascending order, Find the total number of occurrences of T in A. Examples A = {1, 2, 3, 4, 5 阅读全文
摘要:
Delete the node at the given index for the given linked list. Examples [1, 2, 3], delete at 1 --> [1, 3] [1, 2, 3], delete at 4 --> [1, 2, 3] [1, 2, 3 阅读全文
摘要:
1 /* 2 note, here we use the concept of circle array: so head and tail could be in the middle of it. 3 head index is the 1st real value; tail index is the 1st available slot 4 h t 5 ... 阅读全文
摘要:
http://www.lintcode.com/en/problem/search-range-in-binary-search-tree/ Given two values k1 and k2 (where k1 < k2) and a root pointer to a Binary Searc 阅读全文