aboutsummaryrefslogtreecommitdiff
path: root/challenge-044/duncan-c-white
diff options
context:
space:
mode:
authorMohammad S Anwar <mohammad.anwar@yahoo.com>2020-01-20 16:34:47 +0000
committerMohammad S Anwar <mohammad.anwar@yahoo.com>2020-01-20 16:34:47 +0000
commit073831fd45dabeb435b94c3d166c3acabba2dabb (patch)
tree68f7eb66d4ca41b96e771507936c834ac50dfa16 /challenge-044/duncan-c-white
parent008c778923279b75b7eebf43cd5fb392bcba583c (diff)
downloadperlweeklychallenge-club-073831fd45dabeb435b94c3d166c3acabba2dabb.tar.gz
perlweeklychallenge-club-073831fd45dabeb435b94c3d166c3acabba2dabb.tar.bz2
perlweeklychallenge-club-073831fd45dabeb435b94c3d166c3acabba2dabb.zip
- Added template for Challenge 044.
Diffstat (limited to 'challenge-044/duncan-c-white')
-rw-r--r--challenge-044/duncan-c-white/README35
1 files changed, 35 insertions, 0 deletions
diff --git a/challenge-044/duncan-c-white/README b/challenge-044/duncan-c-white/README
new file mode 100644
index 0000000000..2424e913c2
--- /dev/null
+++ b/challenge-044/duncan-c-white/README
@@ -0,0 +1,35 @@
+Task 1: "Octal Number System
+
+Write a script to print decimal number 0 to 50 in Octal Number System.
+
+For example:
+Decimal 0 = Octal 0
+Decimal 1 = Octal 1
+Decimal 2 = Octal 2
+Decimal 3 = Octal 3
+Decimal 4 = Octal 4
+Decimal 5 = Octal 5
+Decimal 6 = Octal 6
+Decimal 7 = Octal 7
+Decimal 8 = Octal 10
+
+and so on.
+"
+
+My notes: Trivial.
+
+Task #2: "Balanced Brackets
+
+Write a script to generate a string with random number of ( and ) brackets. Then make the script validate the string if it has balanced brackets.
+
+For example:
+() - OK
+(()) - OK
+)( - NOT OK
+())() - NOT OK
+"
+
+My notes: sounds quite easy. Generate is like coin tossing, validator could
+either count how many nested brackets we're in, or we could use regex search
+and replace to repeatedly delete () pairs of adjacent characters, valid if
+we end up with the empty string.