摘要:
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
阅读(144)
评论(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
阅读(104)
评论(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
阅读(154)
评论(0)
推荐(0)
摘要:
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
阅读(234)
评论(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
阅读(161)
评论(0)
推荐(0)

浙公网安备 33010602011771号