
LeetCode
文章平均质量分 69
Cloudox_
目前最有趣的等待,是未来
展开
-
用Xcode创建C++工程测试LeetCode代码
最近打算练习leetcode,因为是做iOS的,所以选择了C++语言,Xcode也能直接编译运行。这里介绍一下用Xcode创建C++工程的方法以及测试leetcode的基本语句原创 2016-03-24 15:04:05 · 2256 阅读 · 0 评论 -
LeetCode笔记:344. Reverse String
反转一个字符串原创 2016-05-02 21:15:00 · 5300 阅读 · 0 评论 -
LeetCode笔记:349. Intersection of Two Arrays
找出两个数组中相同的数字(不能重复)原创 2016-09-09 14:44:17 · 1290 阅读 · 0 评论 -
LeetCode笔记:383. Ransom Note
一个字符串是否可以由另一个字符串中的字母组成原创 2016-09-12 11:05:07 · 1079 阅读 · 0 评论 -
LeetCode笔记:387. First Unique Character in a String
找到一个字符串中第一个只出现一次的字母原创 2016-09-13 09:15:21 · 2299 阅读 · 0 评论 -
LeetCode笔记:350. Intersection of Two Arrays II
找出两个数组中相同的数字(出现几次保留几次)原创 2016-09-14 14:46:31 · 1838 阅读 · 0 评论 -
LeetCode笔记:371. Sum of Two Integers
不使用加号减号达到计算两个整数之和的目的原创 2016-09-06 11:01:13 · 1014 阅读 · 0 评论 -
LeetCode笔记:136. Single Number
找出数组中唯一一个只出现了一次的数字原创 2016-09-07 14:51:39 · 3088 阅读 · 0 评论 -
LeetCode笔记:389. Find the Difference
在两个字符串中找出唯一多出的那个字母原创 2016-09-08 15:45:03 · 2161 阅读 · 0 评论 -
LeetCode笔记:437. Path Sum III
在二叉树中寻找能累加成目标值的路径数目原创 2016-11-03 10:17:17 · 1497 阅读 · 0 评论 -
LeetCode笔记:226. Invert Binary Tree
反转二叉树每个节点的左右子节点原创 2016-03-26 15:14:37 · 1037 阅读 · 0 评论 -
LeetCode笔记:9. Palindrome Number
判断一个整数是否是回文原创 2016-11-04 09:18:47 · 697 阅读 · 0 评论 -
LeetCode笔记:283. Move Zeroes
将数组中的所有“0”移动到最后的游戏。多种解法,希望大家来解答一下我的疑问原创 2016-03-28 15:40:57 · 1202 阅读 · 0 评论 -
LeetCode笔记:237. Delete Node in a Linked List
删除链表中某个给定的节点。有个疑问希望高手帮忙解答一下~原创 2016-03-28 19:43:16 · 2986 阅读 · 1 评论 -
LeetCode笔记:100. Same Tree
比较两个二叉树是否相等原创 2016-03-29 14:55:13 · 1295 阅读 · 0 评论 -
LeetCode笔记:242. Valid Anagram
易位构词游戏,判断两个字符串中各个字母是否数量一样原创 2016-04-04 21:01:54 · 1703 阅读 · 0 评论 -
LeetCode笔记:171. Excel Sheet Column Number
模仿处理excel中的列原创 2016-04-13 20:36:31 · 2946 阅读 · 0 评论 -
LeetCode笔记:217. Contains Duplicate
判断数组内是否有相同的数值原创 2016-04-15 10:22:21 · 4023 阅读 · 0 评论 -
LeetCode笔记:292.Nim Game
问题: 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 stones. The one who removes the last stone will b原创 2016-03-24 15:25:18 · 1127 阅读 · 0 评论 -
LeetCode笔记:58. Length of Last Word
计算字符串中最后一个单词的长度原创 2016-11-29 09:19:16 · 776 阅读 · 0 评论 -
LeetCode笔记:345. Reverse Vowels of a String
翻转字符串中所有元音的位置原创 2016-09-29 14:57:55 · 1163 阅读 · 0 评论 -
LeetCode笔记:326. Power of Three
判断一个整数是否是3的次方数原创 2016-09-19 09:27:14 · 1713 阅读 · 0 评论 -
LeetCode笔记:258.Add Digits
问题: Given a non-negative integer num, repeatedly add all its digits until the result has only one digit. For example: Given num = 38, the process is like: 3 + 8 = 11, 1 + 1 = 2. Since 2 has原创 2016-03-24 15:47:26 · 1545 阅读 · 0 评论 -
LeetCode笔记:104.Maximum Depth of Binary Tree
计算二叉树的最大深度原创 2016-03-26 14:43:37 · 1169 阅读 · 0 评论 -
LeetCode笔记:231. Power of Two
判断一个数是否是2的次方数原创 2016-09-19 10:28:28 · 1336 阅读 · 0 评论 -
LeetCode笔记:169. Majority Element
寻找数组中的主要元素原创 2016-04-16 15:23:56 · 3782 阅读 · 0 评论 -
LeetCode笔记:203. Remove Linked List Elements
删除链表中特定值的所有节点原创 2016-11-30 10:27:44 · 756 阅读 · 0 评论 -
LeetCode笔记:342. Power of Four
判断一个数是不是4的次方数原创 2016-09-30 08:54:49 · 1070 阅读 · 0 评论 -
LeetCode笔记:206. Reverse Linked List
反转一个简单链表原创 2016-04-28 15:30:29 · 2540 阅读 · 0 评论 -
LeetCode笔记:202. Happy Number
判断一个数happy不happy。。。什么鬼原创 2016-09-20 09:52:29 · 1420 阅读 · 0 评论 -
LeetCode笔记:28. Implement strStr()
找到子字符串出现的首个位置原创 2016-12-10 16:33:06 · 901 阅读 · 0 评论 -
LeetCode笔记:27. Remove Element
固定内存下移除数组中特定的数字原创 2016-10-19 09:29:35 · 1071 阅读 · 0 评论 -
LeetCode笔记:400. Nth Digit
找到序列中“名副其实”的第n个“数字”原创 2016-12-01 14:21:19 · 1254 阅读 · 0 评论 -
LeetCode笔记:24. Swap Nodes in Pairs
交换链表中每两个相邻的节点位置原创 2016-09-30 09:15:25 · 905 阅读 · 0 评论 -
LeetCode笔记:83. Remove Duplicates from Sorted List
删除排好序的链表中重复的节点原创 2016-09-21 09:40:19 · 1382 阅读 · 0 评论 -
LeetCode笔记:14. Longest Common Prefix
找出字符串数组中相同的最长前缀原创 2016-12-02 10:01:52 · 670 阅读 · 0 评论 -
LeetCode笔记:198. House Robber
盗马贼如何盗马使利益最大化原创 2016-10-08 15:28:30 · 889 阅读 · 0 评论 -
LeetCode笔记:191. Number of 1 Bits
判断一个无符号数的二进制有多少个1原创 2016-09-22 09:32:51 · 1310 阅读 · 0 评论 -
LeetCode笔记:414. Third Maximum Number
寻找数组中第三大数字原创 2016-12-12 09:31:31 · 1787 阅读 · 0 评论 -
LeetCode笔记:101. Symmetric Tree
判断一个二叉树是不是镜像对称的原创 2016-10-20 09:25:09 · 671 阅读 · 0 评论