LeetCode
七印miss
这个作者很懒,什么都没留下…
展开
-
[LeetCode]237 Delete Node in a Linked List
原题链接QuestionWrite a function to delete a node (except the tail) in a singly linked list, given only access to that node.Supposed the linked list is 1 -> 2 -> 3 -> 4 and you are given the third node wit原创 2015-09-26 14:41:41 · 579 阅读 · 0 评论 -
[LeetCode]203 Remove Linked List Elements
原题链接QuestionRemove all elements from a linked list of integers that have value val.Example Given: 1 –> 2 –> 6 –> 3 –> 4 –> 5 –> 6, val = 6 Return: 1 –> 2 –> 3 –> 4 –> 5My Answerstruct ListNode* remov原创 2015-09-26 15:45:25 · 301 阅读 · 0 评论 -
[LeetCode]171 Excel Sheet Column Number
原题链接QusetionRelated to question Excel Sheet Column TitleGiven a column title as appear in an Excel sheet, return its corresponding column number.For example:A -> 1B -> 2C -> 3...Z -> 26AA -> 27AB原创 2015-09-27 14:58:28 · 334 阅读 · 0 评论 -
[LeetCode]186 Excel Sheet Column Title
原题链接QuestionGiven a positive integer, return its corresponding column title as appear in an Excel sheet.For example:1 -> A2 -> B3 -> C...26 -> Z27 -> AA28 -> AB My Answer功能实现函数char* convertToT原创 2015-09-27 14:00:21 · 318 阅读 · 0 评论 -
[LeetCode]Contains Duplicate
原题链接questionGiven an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in the array, and it should return false if every原创 2015-10-04 20:21:27 · 380 阅读 · 0 评论 -
[LeetCode] Ugly Number
questionWrite a program to check whether a given number is an ugly number.Ugly numbers are positive numbers whose prime factors only include 2, 3, 5. For example, 6, 8 are ugly while 14 is not ugly sin原创 2015-10-03 23:36:47 · 328 阅读 · 0 评论