上一页 1 2 3 4 5 6 7 8 9 10 ··· 23 下一页
摘要: Problem : Given an integer array, find three numbers whose product is maximum and output the maximum product. Example 1: Example 2: Note: 1. The lengt 阅读全文
posted @ 2020-04-17 01:13 littledy 阅读(75) 评论(0) 推荐(0) 编辑
摘要: Problem : You are given a string representing an attendance record for a student. The record only contains the following three characters: 1. 'A' : Ab 阅读全文
posted @ 2020-04-17 00:41 littledy 阅读(134) 评论(0) 推荐(0) 编辑
摘要: Problem : A zero indexed array A of length N contains all integers from 0 to N 1. Find and return the longest length of set S, where S[i] = {A[i], A[A 阅读全文
posted @ 2020-04-17 00:24 littledy 阅读(75) 评论(0) 推荐(0) 编辑
摘要: Problem : In MATLAB, there is a very useful function called 'reshape', which can reshape a matrix into a new one with different size but keep its orig 阅读全文
posted @ 2020-04-16 23:36 littledy 阅读(99) 评论(0) 推荐(0) 编辑
摘要: Problem : Given an integer array with even length, where different numbers in this array represent different kinds of candies. Each number means one c 阅读全文
posted @ 2020-04-16 23:15 littledy 阅读(94) 评论(0) 推荐(0) 编辑
摘要: Problem : We define a harmounious array as an array where the difference between its maximum value and its minimum value is exactly 1. Now, given an i 阅读全文
posted @ 2020-04-16 22:47 littledy 阅读(71) 评论(0) 推荐(0) 编辑
摘要: Problem : Given an m n matrix M initialized with all 0's and several update operations. Operations are represented by a 2D array, and each operation i 阅读全文
posted @ 2020-04-16 22:13 littledy 阅读(95) 评论(0) 推荐(0) 编辑
摘要: Problem : Suppose Andy and Doris want to choose a restaurant for dinner, and they both have a list of favorite restaurants represented by strings. You 阅读全文
posted @ 2020-04-16 17:38 littledy 阅读(85) 评论(0) 推荐(0) 编辑
摘要: Problem : Given a string and an integer k, you need to reverse the first k characters for every 2k characters counting from the start of the string. I 阅读全文
posted @ 2020-04-15 15:56 littledy 阅读(70) 评论(0) 推荐(0) 编辑
摘要: Problem : You are given a sorted array consisting of only integers where every element appears exactly twice, except for one element which appears exa 阅读全文
posted @ 2020-04-15 13:33 littledy 阅读(67) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 23 下一页