posted @ 2016-04-11 21:10 cKK 阅读(118) 评论(0) 推荐(0) 编辑
摘要:
You are playing the following Nim Game with your friend: There is a heap of stones on the table, each time one of you take turns to remove 1 to 3 ston 阅读全文
摘要:
Given an array and a value, remove all instances of that value in place and return the new length. Do not allocate extra space for another array, you 阅读全文
posted @ 2016-04-11 20:03 cKK 阅读(112) 评论(0) 推荐(0) 编辑
摘要:
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo 阅读全文
posted @ 2016-04-11 02:43 cKK 阅读(134) 评论(0) 推荐(0) 编辑
摘要:
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single 阅读全文
posted @ 2016-04-11 01:19 cKK 阅读(148) 评论(0) 推荐(0) 编辑
摘要:
Given an input string, reverse the string word by word. For example,Given s = "the sky is blue",return "blue is sky the". 阅读全文
posted @ 2016-04-10 02:48 cKK 阅读(142) 评论(0) 推荐(0) 编辑
摘要:
Given two strings s and t, determine if they are isomorphic. Two strings are isomorphic if the characters in s can be replaced to get t. All occurrenc 阅读全文
posted @ 2016-04-10 02:21 cKK 阅读(178) 评论(0) 推荐(0) 编辑
摘要:
Write a program to find the node at which the intersection of two singly linked lists begins. For example, the following two linked lists: begin to in 阅读全文
posted @ 2016-04-06 15:13 cKK 阅读(163) 评论(0) 推荐(0) 编辑
摘要:
Remove all elements from a linked list of integers that have value val. ExampleGiven: 1 --> 2 --> 6 --> 3 --> 4 --> 5 --> 6, val = 6Return: 1 --> 2 -- 阅读全文
posted @ 2016-04-06 15:08 cKK 阅读(157) 评论(0) 推荐(0) 编辑