Skip to content

Commit

Permalink
init spiral matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
vhgcuong committed Oct 4, 2023
1 parent 64bdc59 commit 82498ab
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/spiral_matrix.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
pub fn spiral_matrix(size: u32) -> Vec<Vec<u32>> {
todo!("Function that returns the spiral matrix of square size {size}");
let mut matrix = vec![vec![0, size], size];


matrix
}

0 comments on commit 82498ab

Please sign in to comment.