码迷,mamicode.com
首页 >  
搜索关键字:given n integers    ( 24278个结果
674. Longest Continuous Increasing Subsequence
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
670. Maximum Swap
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
646. Maximum Length of Pair Chain
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
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
575. Distribute Candies
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
【中等】6-Z字变换 Zigzag Conversion
题目 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
【中等】5-最长回文子串 Longest Palindromic Substring
题目 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
496. Next Greater Element I
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
HDoj 2056 Rectangles
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
1389. Create Target Array in the Given Order
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
24278条   上一页 1 ... 48 49 50 51 52 ... 2428 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!