We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 91f97cf commit 5113a9fCopy full SHA for 5113a9f
src/lib.rs
@@ -224,3 +224,4 @@ mod n0292_nim_game;
224
mod n0295_find_median_from_data_stream;
225
mod n0299_bulls_and_cows;
226
mod n0300_longest_increasing_subsequence;
227
+mod n0301_remove_invalid_parentheses;
src/n0300_longest_increasing_subsequence.rs
@@ -30,15 +30,13 @@ impl Solution {
30
let mut incr = Vec::new();
31
for &num in nums.iter() {
32
if let Err(idx) = incr.binary_search(&num) {
33
- println!("{:?}", idx);
34
if idx >= incr.len() {
35
incr.push(num);
36
} else {
37
incr[idx] = num;
38
}
39
40
41
- println!("{:?}", incr);
42
incr.len() as i32
43
44
0 commit comments