1047. 删除字符串中的所有相邻重复项 1047. Remove All Adjacent Duplicates In String 题目描述 LeetCode1047. Remove All Adjacent Duplicates In String简单 Java 实现 import java.util.Stack; class Solution { public String removeDuplicates(String S) { if (S == null || S.length()…