代码改变世界

随笔档案-2023年10月12日

[LeetCode] 2863. Maximum Length of Semi-Decreasing Subarrays_Medium tag: stack

2023-10-12 04:56 by Johnson_强生仔仔, 207 阅读, 收藏,
摘要: You are given an integer array nums. Return the length of the longest semi-decreasing subarray of nums, and 0 if there are no such subarrays. A subarr 阅读全文

[LeetCode] 2434. Using a Robot to Print the Lexicographically Smallest String_Medium tag: stack

2023-10-12 02:28 by Johnson_强生仔仔, 29 阅读, 收藏,
摘要: You are given a string s and a robot that currently holds an empty string t. Apply one of the following operations until s and t are both empty: Remov 阅读全文