上一页 1 2 3 4 5 6 7 8 9 10 ··· 20 下一页
摘要: source link: https://www.geeksforgeeks.org/pancake-sorting/ Description: Given an unsorted array, sort the given array. You are allowed to do only fol 阅读全文
posted @ 2019-09-03 11:13 CodingYM 阅读(212) 评论(0) 推荐(0) 编辑
摘要: Description: S and T are strings composed of lowercase letters. In S, no letter occurs more than once. S was sorted in some custom order previously. W 阅读全文
posted @ 2019-09-03 09:46 CodingYM 阅读(153) 评论(0) 推荐(0) 编辑
摘要: Description: Find the minimum length word from a given dictionary words, which has all the letters from the string licensePlate. Such a word is said t 阅读全文
posted @ 2019-09-02 18:48 CodingYM 阅读(222) 评论(0) 推荐(0) 编辑
摘要: Description: We are playing the Guess Game. The game is as follows: I pick a number from 1 to n. You have to guess which number I picked. Every time y 阅读全文
posted @ 2019-09-02 16:36 CodingYM 阅读(118) 评论(0) 推荐(0) 编辑
摘要: Description: Given an array of integers nums, sort the array in ascending order. Example 1: Input: [5,2,3,1] Output: [1,2,3,5] Example 2: Input: [5,1, 阅读全文
posted @ 2019-09-02 13:33 CodingYM 阅读(203) 评论(0) 推荐(0) 编辑
摘要: Description: 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 o 阅读全文
posted @ 2019-09-02 09:54 CodingYM 阅读(126) 评论(0) 推荐(0) 编辑
摘要: Description: Given a string s, we make queries on substrings of s. For each query queries[i] = [left, right, k], we may rearrange the substring s[left 阅读全文
posted @ 2019-09-01 12:10 CodingYM 阅读(161) 评论(0) 推荐(0) 编辑
摘要: Description: 5174. Diet Plan Performance My SubmissionsBack to Contest 5174. Diet Plan Performance My SubmissionsBack to Contest My SubmissionsBack to 阅读全文
posted @ 2019-09-01 11:22 CodingYM 阅读(220) 评论(0) 推荐(0) 编辑
摘要: Description: You are standing at position 0 on an infinite number line. There is a goal at position target. On each move, you can either go left or ri 阅读全文
posted @ 2019-09-01 09:53 CodingYM 阅读(127) 评论(0) 推荐(0) 编辑
摘要: Description: Write a function that takes a string as input and reverse only the vowels of a string. Example 1: Example 2: Input: "leetcode" Output: "l 阅读全文
posted @ 2019-08-31 22:22 CodingYM 阅读(193) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 20 下一页