摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
source link: https://www.geeksforgeeks.org/pancake-sorting/ Description: Given an unsorted array, sort the given array. You are allowed to do only fol 阅读全文
摘要:
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 阅读全文