Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 651366c

Browse files
Perryenlabuladong
Perryen
authored andcommitted
pop函数修改
1 parent 391169b commit 651366c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎多语言解法代码/solution_code.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29555,7 +29555,9 @@ public:
2955529555
q.push(q.front());
2955629556
q.pop();
2955729557
// 删除之前的队尾元素
29558-
return q.front();
29558+
int tmp=q.front();
29559+
q.pop();
29560+
return tmp;
2955929561
}
2956029562

2956129563
/**

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /