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 5113a9f

Browse files
committed
Rm debug info
1 parent 91f97cf commit 5113a9f

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

‎src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,3 +224,4 @@ mod n0292_nim_game;
224224
mod n0295_find_median_from_data_stream;
225225
mod n0299_bulls_and_cows;
226226
mod n0300_longest_increasing_subsequence;
227+
mod n0301_remove_invalid_parentheses;

‎src/n0300_longest_increasing_subsequence.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,13 @@ impl Solution {
3030
let mut incr = Vec::new();
3131
for &num in nums.iter() {
3232
if let Err(idx) = incr.binary_search(&num) {
33-
println!("{:?}", idx);
3433
if idx >= incr.len() {
3534
incr.push(num);
3635
} else {
3736
incr[idx] = num;
3837
}
3938
}
4039
}
41-
println!("{:?}", incr);
4240
incr.len() as i32
4341
}
4442
}

0 commit comments

Comments
(0)

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