Skip to content

Commit 7eda84c

Browse files
authored
Update kthlargest.cpp
1 parent c95caac commit 7eda84c

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

BST/kthlargest.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ class Solution {
22
public:
33
int kthLargest(TreeNode* root, int k) {
44
stack<TreeNode*> numberStack;
5-
if(!root) return 0;
65
numberStack.push(root);
76
while(!numberStack.empty() || root) {
87
while(root) {

0 commit comments

Comments
 (0)