上一页 1 ··· 37 38 39 40 41 42 43 44 45 ··· 76 下一页
摘要: Given a string s, find the longest palindromic subsequence's length in s. You may assume that the maximum length of s is 1000. Example 1:Input: "bbbab 阅读全文
posted @ 2020-02-21 15:22 Schwifty 阅读(125) 评论(0) 推荐(0)
摘要: Given an array of integers target. From a starting array, A consisting of all 1's, you may perform the following procedure : let x be the sum of all e 阅读全文
posted @ 2020-02-21 13:57 Schwifty 阅读(183) 评论(0) 推荐(0)
摘要: Implement the class ProductOfNumbers that supports two methods: 1. add(int num) Adds the number num to the back of the current list of numbers. 2. get 阅读全文
posted @ 2020-02-18 13:38 Schwifty 阅读(200) 评论(0) 推荐(0)
摘要: Given a m * n matrix grid which is sorted in non-increasing order both row-wise and column-wise. Return the number of negative numbers in grid. Exampl 阅读全文
posted @ 2020-02-18 11:45 Schwifty 阅读(247) 评论(0) 推荐(0)
摘要: Given two equal-size strings s and t. In one step you can choose any character of t and replace it with another character. Return the minimum number o 阅读全文
posted @ 2020-02-18 10:44 Schwifty 阅读(502) 评论(0) 推荐(0)
摘要: Given an array arr of integers, check if there exists two integers N and M such that N is the double of M ( i.e. N = 2 * M). More formally check if th 阅读全文
posted @ 2020-02-18 10:18 Schwifty 阅读(304) 评论(0) 推荐(0)
摘要: Given two numbers, hour and minutes. Return the smaller angle (in sexagesimal units) formed between the hour and the minute hand. Example 1: Input: ho 阅读全文
posted @ 2020-02-13 02:56 Schwifty 阅读(323) 评论(0) 推荐(0)
摘要: Given an array of integers arr and two integers k and threshold. Return the number of sub-arrays of size k and average greater than or equal to thresh 阅读全文
posted @ 2020-02-13 01:57 Schwifty 阅读(243) 评论(0) 推荐(0)
摘要: Given a non-negative integer num, return the number of steps to reduce it to zero. If the current number is even, you have to divide it by 2, otherwis 阅读全文
posted @ 2020-02-10 06:05 Schwifty 阅读(277) 评论(0) 推荐(0)
摘要: Given a string, you need to reverse the order of characters in each word within a sentence while still preserving whitespace and initial word order. E 阅读全文
posted @ 2020-02-07 23:39 Schwifty 阅读(92) 评论(0) 推荐(0)
上一页 1 ··· 37 38 39 40 41 42 43 44 45 ··· 76 下一页