Skip to content

Commit

Permalink
Remove the workaroud for rust-lang/rust#90904
Browse files Browse the repository at this point in the history
  • Loading branch information
EFanZh committed Dec 13, 2021
1 parent dfe6d00 commit 0061e52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/problem_0120_triangle/dynamic_programming.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ use std::mem;

impl Solution {
pub fn minimum_total(triangle: Vec<Vec<i32>>) -> i32 {
let mut temp_cache = Vec::<i32>::with_capacity(triangle.len()); // TODO: Remove explicit type annotation.
let mut cache = Vec::<i32>::with_capacity(triangle.len()); // TODO: Remove explicit type annotation.
let mut temp_cache = Vec::with_capacity(triangle.len());
let mut cache = Vec::with_capacity(triangle.len());

for row in triangle {
temp_cache.resize(row.len(), 0);
Expand Down

0 comments on commit 0061e52

Please sign in to comment.