diff options
| author | Mohammad S Anwar <mohammad.anwar@yahoo.com> | 2020-01-29 07:30:28 +0000 |
|---|---|---|
| committer | Mohammad S Anwar <mohammad.anwar@yahoo.com> | 2020-01-29 07:30:28 +0000 |
| commit | bf0d241076c0e080fd5df2f7a02a499a6d9da6d0 (patch) | |
| tree | 68c6d77e2bcf90e9a29a01f854c83817c85ad6ec /challenge-045/duncan-c-white/README | |
| parent | 32d92f6e8d7ec356dc1a33b1b464da7382de5747 (diff) | |
| download | perlweeklychallenge-club-bf0d241076c0e080fd5df2f7a02a499a6d9da6d0.tar.gz perlweeklychallenge-club-bf0d241076c0e080fd5df2f7a02a499a6d9da6d0.tar.bz2 perlweeklychallenge-club-bf0d241076c0e080fd5df2f7a02a499a6d9da6d0.zip | |
- Added template for Challenge 045.
Diffstat (limited to 'challenge-045/duncan-c-white/README')
| -rw-r--r-- | challenge-045/duncan-c-white/README | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/challenge-045/duncan-c-white/README b/challenge-045/duncan-c-white/README new file mode 100644 index 0000000000..884fd73e48 --- /dev/null +++ b/challenge-045/duncan-c-white/README @@ -0,0 +1,19 @@ +Task 1: "Only 100, please. + +You are given a string "123456789". Write a script that would insert "+" +or "-" in between digits so that when you evaluate, the result should +be 100." + +My notes: hmm.. looks like it might be combinatorial. Is there a clever way? +It's almost like a version of Countdown's number game (without * and /). + +Task #2: "Make it $200 + +You have only $1 left at the start of the week. You have been given an +opportunity to make it $200. The rule is simple with every move you can +either double what you have or add another $1. Write a script to help +you get $200 with the smallest number of moves. +" + +My notes: doubling sounds like the way to go.. exhaustive breadth first +search "try both options at every move" seems obvious but combinatorial growth |
