### MyLeetcode

1. 用自己的思维和代码 2. 扩散，举一反三

0 已关注
42篇博文
• #### Excel Sheet Column Title

Given a positive integer, return its corresponding column title as appear in an Excel sheet. For ...

2015-01-03 21:16
1214
• #### Excel Sheet Column Number

Related to question Excel Sheet Column Title Given a column title as appear in an Excel sheet, retu...

2015-01-03 21:22
754
• #### Factorial Trailing Zeroes

Given an integer n, return the number of trailing zeroes in n!. Note: Your solution should be in ...

2015-01-03 17:57
958
• #### Merge Two Sorted Lists

Merge Two Sorted Lists  Total Accepted: 4404 Total Submissions: 13615My Submissions Merg...

2013-12-13 11:25
561
• #### Remove Nth Node From End of List

Given a linked list, remove the nth node from the end of list and return its head. For example, ...

2013-12-13 10:48
540
• #### Remove Element

Given an array and a value, remove all instances of that value in place and return the new length. ...

2013-12-13 07:11
572
• #### Remove Duplicates from Sorted List

Given a sorted linked list, delete all duplicates such that each element appear only once. For ex...

2013-12-13 06:52
580

You are given two linked lists representing two non-negative numbers. The digits are stored in rever...

2013-12-13 06:40
563

一次AC Given a linked list, determine if it has a cycle in it. Follow up: Can you solve it wi...

2013-12-11 11:51
583
• #### Rome to Intger

一次ＡＣ 关键是读懂题意 记数方法 基本字符 I V X L C D ...

2013-12-11 02:47
730
• #### Swap Nodes in Pairs

Given a linked list, swap every two adjacent nodes and return its head. For example, Given 1->2-...

2013-12-11 02:01
720
• #### Length of Last Word

Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the ...

2013-12-10 23:56
626
• #### leetcode开篇

受猛人鼓舞,　开始leetcode之路.时间暂定三月.向者耕耘于杭电,北大acm .奈何题量浩繁,种类各异,良莠不齐.加之无人指点,好似永无止境,致锐气尽脱,心灰意懒. 　　　leetcode题量适中...

2013-12-10 18:21
981
• #### Binary Tree Preorder Traversal

Binary Tree Preorder Traversal  Total Accepted: 4309 Total Submissions: 12898My Submissions ...

2013-12-14 19:36
538
• #### Single Number II

Given an array of integers, every element appears three times except for one. Find that single one. ...

2013-12-15 09:01
637
• #### Unique Paths II

Follow up for "Unique Paths": Now consider if some obstacles are added to the grids. How many uni...

2013-12-15 11:30
577
• #### Plus One

Given a number represented as an array of digits, plus one to the number. class Solution { public: ...

2013-12-15 12:01
590
• #### Minimum Path Sum

Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which...

2013-12-15 19:32
541
• #### Path Sum II

Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given su...

2013-12-15 22:35
667
• #### Path Sum

Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all...

2013-12-15 21:58
557