上一页 1 2 3 4 5 6 7 8 9 ··· 20 下一页
摘要: Description: In LOL world, there is a hero called Teemo and his attacking can make his enemy Ashe be in poisoned condition. Now, given the Teemo's att 阅读全文
posted @ 2019-09-04 17:29 CodingYM 阅读(137) 评论(0) 推荐(0) 编辑
摘要: Description: Given an integer array, find three numbers whose product is maximum and output the maximum product. Example 1: Input: [1,2,3] Output: 6 E 阅读全文
posted @ 2019-09-04 15:27 CodingYM 阅读(99) 评论(0) 推荐(0) 编辑
摘要: Description: Given an array A of non-negative integers, half of the integers in A are odd, and half of the integers are even. Sort the array so that w 阅读全文
posted @ 2019-09-04 15:06 CodingYM 阅读(118) 评论(0) 推荐(0) 编辑
摘要: Description: Given an array of 2n integers, your task is to group these integers into n pairs of integer, say (a1, b1), (a2, b2), ..., (an, bn) which 阅读全文
posted @ 2019-09-04 14:49 CodingYM 阅读(152) 评论(0) 推荐(0) 编辑
摘要: Description: Given a paragraph and a list of banned words, return the most frequent word that is not in the list of banned words. It is guaranteed the 阅读全文
posted @ 2019-09-04 12:13 CodingYM 阅读(191) 评论(0) 推荐(0) 编辑
摘要: Description: Given a positive integer, output its complement number. The complement strategy is to flip the bits of its binary representation. Note: T 阅读全文
posted @ 2019-09-04 10:42 CodingYM 阅读(144) 评论(0) 推荐(0) 编辑
摘要: Description: Given a string, find the first non-repeating character in it and return it's index. If it doesn't exist, return -1. Examples: s = "leetco 阅读全文
posted @ 2019-09-04 10:22 CodingYM 阅读(153) 评论(0) 推荐(0) 编辑
摘要: Description: Suppose you have a long flowerbed in which some of the plots are planted and some are not. However, flowers cannot be planted in adjacent 阅读全文
posted @ 2019-09-03 17:57 CodingYM 阅读(140) 评论(0) 推荐(0) 编辑
摘要: Description: Say you have an array for which the ith element is the price of a given stock on day i. If you were only permitted to complete at most on 阅读全文
posted @ 2019-09-03 16:52 CodingYM 阅读(96) 评论(0) 推荐(0) 编辑
摘要: Description: We have a string S of lowercase letters, and an integer array shifts. Call the shift of a letter, the next letter in the alphabet, (wrapp 阅读全文
posted @ 2019-09-03 13:56 CodingYM 阅读(150) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 20 下一页