Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
realgeoffrey committed Aug 30, 2024
1 parent a0b581b commit fb46ad6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 网站前端/数据结构与算法/LeetCode记录/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4543,7 +4543,7 @@ s 只包含小写字母。
*/
var firstUniqChar = function (s) {
const map = new Map();
for (let str of s) {
for (const str of s) {
map.set(str, (map.get(str) ?? 0) + 1);
}
for (let val of map) {
Expand Down Expand Up @@ -6279,7 +6279,7 @@ myStack.empty(); // 返回 False
// 字符串是左括号就入栈,字符串是右括号则出栈对比
const stack = [];
for (let str of s) {
for (const str of s) {
if (str === "(" || str === "[" || str === "{") {
stack.push(str);
}
Expand Down

0 comments on commit fb46ad6

Please sign in to comment.