码迷,mamicode.com
首页 >  
搜索关键字:problems    ( 6275个结果
Valid Phone Numbers
https://leetcode.com/problems/valid-phone-numbers/ # Read from the file file.txt and output all valid phone numbers to stdout. awk '/^([0-9]{3}-|\([0-9]{3}\) )[0-9]{3}-[0-9]{4}$/{print $0}' fi...
分类:其他好文   时间:2015-07-11 15:13:34    阅读次数:123
[LeetCode] Valid Number
I guess some of you may have noticed that this seemingly simple problem has the lowest acceptance rate among all problems on the LeetCode OJ. Well, so...
分类:其他好文   时间:2015-07-11 15:03:21    阅读次数:129
42 Trapping Rain Water
42 Trapping Rain Water链接:https://leetcode.com/problems/trapping-rain-water/ 问题描述: Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water...
分类:移动开发   时间:2015-07-11 09:09:39    阅读次数:152
20 Valid Parentheses
20 Valid Parentheses链接:https://leetcode.com/problems/valid-parentheses/ 问题描述: Given a string containing just the characters ‘(‘, ‘)’, ‘{‘, ‘}’, ‘[’ and ‘]’, determine if the input string is valid.The...
分类:其他好文   时间:2015-07-11 09:08:46    阅读次数:103
Search Insert Position
https://leetcode.com/problems/search-insert-position/1 class Solution {2 public:3 int searchInsert(vector& nums, int target) {4 int index=...
分类:其他好文   时间:2015-07-11 08:59:09    阅读次数:103
Remove Duplicates from Sorted List
https://leetcode.com/problems/remove-duplicates-from-sorted-list/ 1 /** 2 * Definition for singly-linked list. 3 * struct ListNode { 4 * int va...
分类:其他好文   时间:2015-07-11 08:58:58    阅读次数:94
Unique Binary Search Trees
https://leetcode.com/problems/unique-binary-search-trees/ 1 class Solution { 2 public: 3 int numTrees(int n) { 4 //典型的动态规划问题 5 //先...
分类:其他好文   时间:2015-07-10 22:04:23    阅读次数:115
Binary Tree Inorder Traversal
https://leetcode.com/problems/binary-tree-inorder-traversal/递归中序遍历 1 /** 2 * Definition for a binary tree node. 3 * struct TreeNode { 4 * int v...
分类:其他好文   时间:2015-07-10 18:21:58    阅读次数:122
49 Anagrams
49 Anagrams链接:https://leetcode.com/problems/anagrams/ 问题描述: Given an array of strings, return all groups of strings that are anagrams.Note: All inputs will be in lower-case.Hide Tags Hash Table Strin...
分类:其他好文   时间:2015-07-10 15:25:09    阅读次数:130
Palindrome Linked List
https://leetcode.com/problems/palindrome-linked-list/Given a singly linked list, determine if it is a palindrome.Follow up:Could you do it in O(n) tim...
分类:其他好文   时间:2015-07-10 13:04:13    阅读次数:66
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!