Re: [闲聊] 每日LeetCode

楼主: Rushia (みけねこ的鼻屎)   2022-11-10 09:03:36
1047. Remove All Adjacent Duplicates In String
给予一个字串s,若该字串存在任意两字符相邻则移除该两个字符,直到不能移除为止。
Example:
Input: s = "abbaca"
Output: "ca"
Explanation:
abbaca -> aaca -> ca
法一 堆叠
思路:
1.基本上同前几天的每日一题 #1ZQR2NID (Marginalman),只是判断堆叠进出的条件
从大写+小写变成两个相同字母
Java Code:
作者: itoumashiro (佩可咪口爱的结晶)   2022-11-10 09:40:00
今天怎么没有龙大
作者: pandix (面包屌)   2022-11-10 09:59:00
大师

Links booklink

Contact Us: admin [ a t ] ucptt.com