Problem : Given an unsorted array of integers, find the length of longest continuous increasing subsequence (subarray). Example 1: Example 2: Note: Le ...
分类:
其他好文 时间:
2020-04-18 14:06:13
阅读次数:
59
Problem : Given a non negative integer, you could swap two digits at most once to get the maximum valued number. Return the maximum valued number you ...
分类:
其他好文 时间:
2020-04-18 13:33:58
阅读次数:
75
Problem : 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 ...
分类:
其他好文 时间:
2020-04-18 10:09:19
阅读次数:
67
Leetcode 1254. Number of Closed Islands Given a 2D grid consists of 0s (land) and 1s (water). An island is a maximal 4 directionally connected group o ...
分类:
其他好文 时间:
2020-04-17 22:04:59
阅读次数:
63
Problem : Given an integer array with even length, where different numbers in this array represent different kinds of candies. Each number means one c ...
分类:
其他好文 时间:
2020-04-17 00:23:13
阅读次数:
77
题目 The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed fo ...
分类:
其他好文 时间:
2020-04-16 13:20:15
阅读次数:
61
题目 Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000. 给定一个字符串 s,找到 s 中最长的回文子串。你可以假设 s ...
分类:
其他好文 时间:
2020-04-15 18:30:58
阅读次数:
59
You are given two arrays (without duplicates) nums1 and nums2 where nums1’s elements are subset of nums2. Find all the next greater numbers for nums1' ...
分类:
其他好文 时间:
2020-04-15 15:17:52
阅读次数:
68
Problem Description Given two rectangles and the coordinates of two points on the diagonals of each rectangle,you have to calculate the area of the in ...
分类:
其他好文 时间:
2020-04-15 13:51:02
阅读次数:
82
Given two arrays of integers nums and index. Your task is to create target array under the following rules: Initially target array is empty. From left ...
分类:
其他好文 时间:
2020-04-15 09:17:23
阅读次数:
60