LeetCode-179-Largest Number

摘要: 算法描述: Given a list of non negative integers, arrange them such that they form the largest number. Example 1: Example 2: Note: The result may be very l 阅读全文
posted @ 2019-02-19 13:05 无名路人甲 阅读(97) 评论(0) 推荐(0) 编辑

LeetCode-173-Binary Search Tree Iterator

摘要: 算法描述: Implement an iterator over a binary search tree (BST). Your iterator will be initialized with the root node of a BST. Calling next() will return 阅读全文
posted @ 2019-02-19 12:36 无名路人甲 阅读(214) 评论(0) 推荐(0) 编辑

LeetCode-166- Fraction to Recurring Decimal

摘要: 算法描述: Given two integers representing the numerator and denominator of a fraction, return the fraction in string format. If the fractional part is rep 阅读全文
posted @ 2019-02-19 12:20 无名路人甲 阅读(101) 评论(0) 推荐(0) 编辑

LeetCode-165-Compare Version Numbers

摘要: 算法描述: Compare two version numbers version1 and version2.If version1 > version2 return 1; if version1 < version2 return -1;otherwise return 0. You may 阅读全文
posted @ 2019-02-19 10:46 无名路人甲 阅读(146) 评论(0) 推荐(0) 编辑

LeetCode-162-Find Peak Element

摘要: 算法描述: A peak element is an element that is greater than its neighbors. Given an input array nums, where nums[i] ≠ nums[i+1], find a peak element and r 阅读全文
posted @ 2019-02-19 10:15 无名路人甲 阅读(120) 评论(0) 推荐(0) 编辑

LeetCode-126-Word Ladder II

摘要: 算法描述: Given two words (beginWord and endWord), and a dictionary's word list, find all shortest transformation sequence(s) from beginWord to endWord, s 阅读全文
posted @ 2019-02-18 17:26 无名路人甲 阅读(132) 评论(0) 推荐(0) 编辑

LeetCode-146-LRU Cache

摘要: 算法描述: Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and put. get(key) - G 阅读全文
posted @ 2019-02-18 11:51 无名路人甲 阅读(114) 评论(0) 推荐(0) 编辑

LeetCode-145-Binary Tree Postorder Traversal

摘要: 算法描述: Given a binary tree, return the postorder traversal of its nodes' values. Example: Follow up: Recursive solution is trivial, could you do it ite 阅读全文
posted @ 2019-02-17 20:55 无名路人甲 阅读(86) 评论(0) 推荐(0) 编辑

LeetCode-135-Candy

摘要: 算法描述: There are N children standing in a line. Each child is assigned a rating value. You are giving candies to these children subjected to the follow 阅读全文
posted @ 2019-02-17 20:34 无名路人甲 阅读(111) 评论(0) 推荐(0) 编辑

LeetCode-132-Palindrome Partitioning II

摘要: 算法描述: Given a string s, partition s such that every substring of the partition is a palindrome. Return the minimum cuts needed for a palindrome partit 阅读全文
posted @ 2019-02-17 19:08 无名路人甲 阅读(96) 评论(0) 推荐(0) 编辑