
leetcode
Shauna_Wu
这个作者很懒,什么都没留下…
展开
-
leetcode605 Can Place Flowers(放置植物)
问题描述:Suppose you have a long flowerbed in which some of the plots are planted and some are not. However, flowers cannot be planted in adjacent plots - they would compete for water and both would die...原创 2018-06-25 22:25:32 · 401 阅读 · 0 评论 -
leetcode 326. Power of Three(3的次方)
leetcode 326. Power of Three(3的次方)原创 2017-12-18 09:53:40 · 479 阅读 · 0 评论 -
leetcode 263. Ugly Number丑数
leetcode 263. Ugly Number丑数原创 2017-12-26 10:35:16 · 550 阅读 · 0 评论 -
leetcode 88. Merge Sorted Array合并有序数组
leetcode 88. Merge Sorted Array合并有序数组原创 2017-12-08 10:20:55 · 405 阅读 · 0 评论 -
leetcode 70. Climbing Stairs爬梯子(DP问题)
leetcode 70. Climbing Stairs爬梯子(DP问题)原创 2017-12-17 15:45:06 · 568 阅读 · 0 评论 -
leetcode 26. Remove Duplicates from Sorted Array从排序数组中移出重复元素(双指针)
leetcode 26. Remove Duplicates from Sorted Array从排序数组中移出重复元素(双指针)原创 2017-12-07 23:07:50 · 223 阅读 · 0 评论 -
leetcode 1. Two Sum两数和(HashMap)
leetcode 1. Two Sum两数和(HashMap)原创 2017-12-07 22:40:43 · 900 阅读 · 1 评论 -
leetcode447. Number of Boomerangs
leetcode447. Number of Boomerangs原创 2017-11-28 14:52:47 · 409 阅读 · 0 评论 -
leetcode 35. Search Insert Position搜索插入位置(二分查找)
leetcode 35. Search Insert Position搜索插入位置(二分查找)原创 2017-12-06 22:30:14 · 1070 阅读 · 0 评论 -
leetcode 27. Remove Element移出元素(双指针)
leetcode 27. Remove Element移出元素(双指针)原创 2017-12-06 22:11:33 · 394 阅读 · 0 评论 -
leetcode 231. Power of Two(2的次方)
leetcode 231. Power of Two(2的次方)原创 2017-12-18 10:09:23 · 402 阅读 · 0 评论 -
leetcode 437. Path Sum III(路径和)(DFS)
leetcode 437. Path Sum III(路径和)(DFS)原创 2017-12-18 11:02:16 · 618 阅读 · 0 评论 -
leetcode 191. Number of 1 Bits(1的个数)(C++和Java)(无符号位)
leetcode 191. Number of 1 Bits(1的个数)(C++和Java)(无符号位)原创 2017-12-18 17:07:44 · 775 阅读 · 0 评论 -
leetcode 791. Custom Sort String(排序字符串)
leetcode 791. Custom Sort String(排序字符串)原创 2018-02-26 21:06:58 · 1093 阅读 · 0 评论 -
leetcode 172. Factorial Trailing Zeroes(阶乘尾后0个数)(因式分解)
leetcode 172. Factorial Trailing Zeroes(阶乘尾后0个数)(因式分解)原创 2018-01-10 16:12:21 · 416 阅读 · 0 评论 -
leetcode 443. String Compression(字符串压缩)
leetcode 443. String Compression(字符串压缩)原创 2018-01-08 17:17:50 · 2795 阅读 · 0 评论 -
leetcode 459. Repeated Substring Pattern(重复子字符串)
leetcode 459. Repeated Substring Pattern(重复子字符串)原创 2018-01-04 12:40:27 · 561 阅读 · 1 评论 -
leetcode 235. Lowest Common Ancestor of a Binary Search Tree(二叉搜索树的最小公共祖先)
leetcode 235. Lowest Common Ancestor of a Binary Search Tree(二叉搜索树的最小公共祖先)原创 2018-01-04 11:27:49 · 315 阅读 · 0 评论 -
leetcode 438. Find All Anagrams in a String在字符串中寻找同构体(Sliding Window)
leetcode 438. Find All Anagrams in a String在字符串中寻找同构体(Sliding Window)原创 2017-12-27 14:19:29 · 1535 阅读 · 1 评论 -
leetcode 257. Binary Tree Paths(DFS)
leetcode 257. Binary Tree Paths(DFS)原创 2017-12-18 18:50:13 · 372 阅读 · 0 评论 -
leetcode 101. Symmetric Tree对称树(递归和迭代)
leetcode 101. Symmetric Tree对称树(递归和迭代)原创 2017-12-20 15:05:59 · 670 阅读 · 0 评论 -
leetcode 367. Valid Perfect Square有效的完全平方数
leetcode 367. Valid Perfect Square有效的完全平方数原创 2017-12-27 10:42:17 · 1861 阅读 · 0 评论 -
leetcode 53. Maximum Subarray(DP动态规划问题)
leetcode 53. Maximum Subarray(DP动态规划问题)原创 2017-12-06 21:41:00 · 1985 阅读 · 0 评论 -
leetcode 695. Max Area of Island岛的最大面积(深度优先搜索)
leetcode 695. Max Area of Island岛的最大面积(深度优先搜索)原创 2017-12-06 21:37:09 · 568 阅读 · 0 评论 -
leetcode 405. Convert a Number to Hexadecimal(十进制转十六进制>>>)
leetcode 405. Convert a Number to Hexadecimal(十进制转十六进制>>>)原创 2017-12-15 15:09:28 · 521 阅读 · 0 评论 -
leetcode628.Maximum Product of Three Numbers三个数的最大乘积
leetcode628.Maximum Product of Three Numbers三个数的最大乘积原创 2017-11-28 23:31:57 · 1500 阅读 · 1 评论 -
leetcode 189. Rotate Array旋转数组
leetcode 189. Rotate Array旋转数组原创 2017-10-17 10:56:23 · 416 阅读 · 0 评论 -
leetcode 7. Reverse Integer整数反转
leetcode 7. Reverse Integer整数反转原创 2017-10-16 13:09:36 · 468 阅读 · 0 评论 -
leetcode 479. Largest Palindrome Product最大的回文乘积
leetcode 479. Largest Palindrome Product最大的回文乘积原创 2017-10-16 10:52:33 · 2179 阅读 · 0 评论 -
leetcode 665. Non-decreasing Array非递减数组
leetcode 665. Non-decreasing Array非递减数组原创 2017-10-12 19:32:47 · 921 阅读 · 0 评论 -
387. First Unique Character in a String
题目描述: Given a string, find the first non-repeating character in it and return it’s index. If it doesn’t exist, return -1.原创 2017-09-11 13:21:07 · 238 阅读 · 0 评论 -
169.Majority Element
问题描述: Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ times. You may assume that the array is non-empty and the majority elemen原创 2017-09-07 11:25:03 · 315 阅读 · 0 评论 -
A summary: how to use bit manipulation to solve problems easily and efficiently
Bit manipulation is the act of algorithmically manipulating bits or other pieces of data shorter than a word.转载 2017-05-04 10:46:57 · 308 阅读 · 0 评论 -
Leetcode 412 Fizz Buzz及vector初探
一、这是在leetcode上做的第一道题,算法思想非常简单,也第一次认真地学习了vector的基本内容原创 2016-11-25 21:31:13 · 662 阅读 · 0 评论 -
leetcode 401. Binary Watch二进制手表
leetcode 401. Binary Watch二进制手表原创 2017-11-29 13:40:40 · 914 阅读 · 0 评论 -
leetcode 669. Trim a Binary Search Tree修剪二叉搜索树
leetcode 669. Trim a Binary Search Tree修剪二叉搜索树原创 2017-12-01 19:44:58 · 775 阅读 · 0 评论 -
leetcode 637. Average of Levels in Binary Tree二叉树的每层平均数
leetcode 637. Average of Levels in Binary Tree二叉树的每层平均数原创 2017-12-01 20:39:57 · 377 阅读 · 0 评论 -
leetcode 107. Binary Tree Level Order Traversal II(BFS)(Java和C++)
leetcode 107. Binary Tree Level Order Traversal II(BFS)(Java和C++)原创 2017-12-14 18:33:33 · 685 阅读 · 0 评论 -
leetcode 538. Convert BST to Greater Tree(反向中序遍历)
leetcode 538. Convert BST to Greater Tree(反向中序遍历)原创 2017-12-05 19:53:22 · 522 阅读 · 0 评论 -
leetcode 415. Add Strings字符串加和(C++和Java)
leetcode 415. Add Strings字符串加和(C++和Java)原创 2017-12-13 20:30:56 · 614 阅读 · 0 评论