summaryrefslogtreecommitdiff
path: root/diagonal-traverse/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'diagonal-traverse/src/main.rs')
-rw-r--r--diagonal-traverse/src/main.rs16
1 files changed, 16 insertions, 0 deletions
diff --git a/diagonal-traverse/src/main.rs b/diagonal-traverse/src/main.rs
new file mode 100644
index 0000000..65f680b
--- /dev/null
+++ b/diagonal-traverse/src/main.rs
@@ -0,0 +1,16 @@
+struct Solution;
+impl Solution {
+ pub fn find_diagonal_order(mat: Vec<Vec<i32>>) -> Vec<i32> {
+ let mut solution: Vec<i32> = Vec::new();
+ let x: usize = 0;
+ let y: usize = 0;
+
+ solution.push(mat[x][y]);
+
+ solution
+ }
+}
+
+fn main() {
+ println!("Hello, world!");
+}