摘要: You’re now a baseball game point recorder. Given a list of strings, each string can be one of the 4 following types: + Integer (one round’s score): Di 阅读全文
posted @ 2018-12-06 22:29 A-Little-Nut 阅读(107) 评论(0) 推荐(0) 编辑
摘要: Given an unsorted array of integers, find the length of longest continuous increasing subsequence (subarray). Example 1: Example 2: Note: Length of th 阅读全文
posted @ 2018-12-06 22:26 A-Little-Nut 阅读(102) 评论(0) 推荐(0) 编辑
摘要: Given an unsorted array of integers, find the number of longest increasing subsequence. Example 1: Example 2: Note: Length of the given array will be 阅读全文
posted @ 2018-12-06 22:23 A-Little-Nut 阅读(119) 评论(0) 推荐(0) 编辑
摘要: Given a non empty special binary tree consisting of nodes with the non negative value, where each node in this tree has exactly two or zero sub node. 阅读全文
posted @ 2018-12-06 22:18 A-Little-Nut 阅读(100) 评论(0) 推荐(0) 编辑
摘要: Given a binary search tree and the lowest and highest boundaries as L and R, trim the tree so that all its elements lies in [L, R] (R = L). You might 阅读全文
posted @ 2018-12-06 22:16 A-Little-Nut 阅读(104) 评论(0) 推荐(0) 编辑
摘要: Given a 2D integer matrix M representing the gray scale of an image, you need to design a smoother to make the gray scale of each cell becomes the ave 阅读全文
posted @ 2018-12-06 22:14 A-Little-Nut 阅读(85) 评论(0) 推荐(0) 编辑
摘要: Initially, there is a Robot at position (0, 0). Given a sequence of its moves, judge if this robot makes a circle, which means it moves back to the or 阅读全文
posted @ 2018-12-06 22:13 A-Little-Nut 阅读(93) 评论(0) 推荐(0) 编辑
摘要: Given a Binary Search Tree and a target number, return true if there exist two elements in the BST such that their sum is equal to the given target. E 阅读全文
posted @ 2018-12-06 22:11 A-Little-Nut 阅读(101) 评论(0) 推荐(0) 编辑
摘要: Initially on a notepad only one character 'A' is present. You can perform two operations on this notepad for each step: Copy All : You can copy all th 阅读全文
posted @ 2018-12-06 22:09 A-Little-Nut 阅读(85) 评论(0) 推荐(0) 编辑
摘要: Given a string, your task is to count how many palindromic substrings in this string. The substrings with different start indexes or end indexes are c 阅读全文
posted @ 2018-12-06 22:08 A-Little-Nut 阅读(140) 评论(0) 推荐(0) 编辑
摘要: You are given n pairs of numbers. In every pair, the first number is always smaller than the second number. Now, we define a pair (c, d) can follow an 阅读全文
posted @ 2018-12-06 22:07 A-Little-Nut 阅读(99) 评论(0) 推荐(0) 编辑
摘要: In LeetCode Store, there are some kinds of items to sell. Each item has a price. However, there are some special offers, and a special offer consists 阅读全文
posted @ 2018-12-06 22:05 A-Little-Nut 阅读(157) 评论(0) 推荐(0) 编辑
摘要: Given a non empty binary tree, return the average value of the nodes on each level in the form of an array. Example 1: Note: The range of node’s value 阅读全文
posted @ 2018-12-06 22:04 A-Little-Nut 阅读(131) 评论(0) 推荐(0) 编辑
摘要: Given an integer array, find three numbers whose product is maximum and output the maximum product. Example 1: Example 2: Note: The length of the give 阅读全文
posted @ 2018-12-06 22:02 A-Little-Nut 阅读(106) 评论(0) 推荐(0) 编辑
摘要: Given two binary trees and imagine that when you put one of them to cover the other, some nodes of the two trees are overlapped while the others are n 阅读全文
posted @ 2018-12-06 22:01 A-Little-Nut 阅读(85) 评论(0) 推荐(0) 编辑