aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenry Wong <somethingweird@yahoo.com>2020-11-25 12:48:27 -0500
committerGitHub <noreply@github.com>2020-11-25 12:48:27 -0500
commitce8d37e7a80ba4b15907cd5db241d30707e795cf (patch)
tree3eafb1b0c674b6d7f22c957cc911102e3fc9a3f0
parenta5a0a4d9dfffe2b586e3f893082f92ac815c065e (diff)
downloadperlweeklychallenge-club-ce8d37e7a80ba4b15907cd5db241d30707e795cf.tar.gz
perlweeklychallenge-club-ce8d37e7a80ba4b15907cd5db241d30707e795cf.tar.bz2
perlweeklychallenge-club-ce8d37e7a80ba4b15907cd5db241d30707e795cf.zip
Update ch-2.php
where I learned to rotate matrix - http://techieme.in/matrix-rotation/
-rw-r--r--challenge-088/henry-wong/php/ch-2.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/challenge-088/henry-wong/php/ch-2.php b/challenge-088/henry-wong/php/ch-2.php
index d5154c58f0..2e639bec68 100644
--- a/challenge-088/henry-wong/php/ch-2.php
+++ b/challenge-088/henry-wong/php/ch-2.php
@@ -1,9 +1,13 @@
<?php
+
+# see http://techieme.in/matrix-rotation/
+
# 0. take row
# 1. delete row
# 2. rotate matrix 90 degrees
# 3. repeat again till no matrix
+# Rotate matrix
# 1. transpose matrix
# 2. reflect horizontal axis