随笔分类 -  leetcode

摘要:Palindrome Number 题解 题目来源:https://leetcode.com/problems/palindrome number/description/ Description Determine whether an integer is a palindrome. Do th 阅读全文
posted @ 2018-01-29 09:45 言何午 阅读(103) 评论(0) 推荐(0)
摘要:Decode Ways 题解 题目来源:https://leetcode.com/problems/decode ways/description/ Description A message containing letters from is being encoded to numbers u 阅读全文
posted @ 2018-01-28 19:47 言何午 阅读(144) 评论(0) 推荐(0)
摘要:Climbing Stairs 题解 题目来源:https://leetcode.com/problems/climbing stairs/description/ Description You are climbing a stair case. It takes n steps to reac 阅读全文
posted @ 2018-01-28 17:17 言何午 阅读(112) 评论(0) 推荐(0)
摘要:Maximum Subarray 题解 题目来源:https://leetcode.com/problems/maximum subarray/description/ Description Find the contiguous subarray within an array (contain 阅读全文
posted @ 2018-01-28 16:25 言何午 阅读(108) 评论(0) 推荐(0)
摘要:Remove Duplicates from Sorted Array 题解 题目来源:https://leetcode.com/problems/remove duplicates from sorted array/description/ Description Given a sorted 阅读全文
posted @ 2018-01-28 13:30 言何午 阅读(136) 评论(0) 推荐(0)
摘要:Swap Nodes in Pairs 题解 原创文章,拒绝转载 题目来源:https://leetcode.com/problems/swap nodes in pairs/description/ Description Given a linked list, swap every two a 阅读全文
posted @ 2018-01-27 15:20 言何午 阅读(167) 评论(0) 推荐(0)
摘要:Symmetric Tree 题解 原创文章,拒绝转载 题目来源:https://leetcode.com/problems/symmetric tree/description/ Description Given a binary tree, check whether it is a mirr 阅读全文
posted @ 2018-01-26 15:03 言何午 阅读(113) 评论(0) 推荐(0)
摘要:Maximum Depth of Binary Tree 题解 原创文章,拒绝转载 题目来源:https://leetcode.com/problems/maximum depth of binary tree/description/ Description Given a binary tree 阅读全文
posted @ 2018-01-26 12:54 言何午 阅读(99) 评论(0) 推荐(0)
摘要:Binary Tree Level Order Traversal 题解 原创文章,拒绝转载 题目来源:https://leetcode.com/problems/binary tree level order traversal/description/ Description Given a b 阅读全文
posted @ 2018-01-26 11:28 言何午 阅读(152) 评论(0) 推荐(0)
摘要:Validate Binary Search Tree 题解 原创文章,拒绝转载 题目来源:https://leetcode.com/problems/validate binary search tree/description/ Description Given a binary tree, 阅读全文
posted @ 2018-01-26 10:53 言何午 阅读(124) 评论(0) 推荐(0)
摘要:Remove Nth Node From End of List 题解 原创文章,拒绝转载 题目来源:https://leetcode.com/problems/remove nth node from end of list/description/ Description Given a lin 阅读全文
posted @ 2018-01-25 11:24 言何午 阅读(113) 评论(0) 推荐(0)
摘要:Reverse Integer 题解 题目来源:https://leetcode.com/problems/reverse integer/description/ Description Given a 32 bit signed integer, reverse digits of an int 阅读全文
posted @ 2018-01-25 10:50 言何午 阅读(132) 评论(0) 推荐(0)
摘要:String to Integer (atoi) 题解 题目来源:https://leetcode.com/problems/string to integer atoi/description/ Description Implement atoi to convert a string to a 阅读全文
posted @ 2018-01-25 09:52 言何午 阅读(89) 评论(0) 推荐(0)
摘要:Valid Sudoku 题解 原创文章,拒绝转载 题目来源:https://leetcode.com/problems/valid sudoku/description/ Description Determine if a Sudoku is valid, according to: "Sudo 阅读全文
posted @ 2018-01-24 11:03 言何午 阅读(111) 评论(0) 推荐(0)
摘要:Group Anagrams 题解 原创文章,拒绝转载 题目来源:https://leetcode.com/problems/group anagrams/description/ Description Given an array of strings, group anagrams toget 阅读全文
posted @ 2018-01-24 10:35 言何午 阅读(106) 评论(0) 推荐(0)
摘要:Unique Binary Search Trees II 题解 原创文章,拒绝转载 题目来源:https://leetcode.com/problems/unique binary search trees ii/description/ Description Given an integer 阅读全文
posted @ 2018-01-23 22:15 言何午 阅读(117) 评论(0) 推荐(0)
摘要:Unique Binary Search Trees 题解 原创文章,拒绝转载 题目来源:https://leetcode.com/problems/unique binary search trees/description/ Description Given n, how many struc 阅读全文
posted @ 2018-01-22 21:18 言何午 阅读(89) 评论(0) 推荐(0)
摘要:Binary Tree Inorder Traversal 题解 原创文章,拒绝转载 题目来源:https://leetcode.com/problems/binary tree inorder traversal/description/ Description Given a binary tr 阅读全文
posted @ 2018-01-22 20:07 言何午 阅读(160) 评论(0) 推荐(0)
摘要:Same Tree 题解 原创文章,拒绝转载 题目来源:https://leetcode.com/problems/same tree/description/ Description Given two binary trees, write a function to check if they 阅读全文
posted @ 2018-01-22 18:08 言何午 阅读(132) 评论(0) 推荐(0)
摘要:Median of Two Sorted Arrays 题解 题目来源:https://leetcode.com/problems/median of two sorted arrays/description/ Description There are two sorted arrays num 阅读全文
posted @ 2018-01-21 20:17 言何午 阅读(100) 评论(0) 推荐(0)