aboutsummaryrefslogtreecommitdiff
path: root/Computer_Science/leetcode/54-spiral_matrix.c~
diff options
context:
space:
mode:
Diffstat (limited to 'Computer_Science/leetcode/54-spiral_matrix.c~')
-rw-r--r--Computer_Science/leetcode/54-spiral_matrix.c~7
1 files changed, 7 insertions, 0 deletions
diff --git a/Computer_Science/leetcode/54-spiral_matrix.c~ b/Computer_Science/leetcode/54-spiral_matrix.c~
new file mode 100644
index 0000000..d1b8665
--- /dev/null
+++ b/Computer_Science/leetcode/54-spiral_matrix.c~
@@ -0,0 +1,7 @@
+/**
+ * Note: The returned array must be malloced, assume caller calls free().
+ */
+int* spiralOrder(int** matrix, int matrixRowSize, int matrixColSize) {
+ int* result = malloc(sizeof(int) * matrixRowSize * matrixColSize);
+
+}