Skip to content

Solve chapter 4 problems - #10

Merged
StephLin merged 3 commits into
OpenMCL:masterfrom
StephLin:feature/chapter-4-solutions
Dec 25, 2022
Merged

StephLin merged 3 commits into
OpenMCL:masterfrom
StephLin:feature/chapter-4-solutions

Conversation

@StephLin

@StephLin StephLin commented Dec 25, 2022 •

Copy link
Copy Markdown
Contributor

This PR solve chapter 4 problems, including

  • solving 4.08 and 4.22, as mentioned in Unfinished questions #1,
  • unifying 4.06, 4.23, 4.24, 4.25, and 4.26's input format, and
  • fixing mismatched solutions 4.23 and 4.25.
$ python .\src\ch04\08.py
> 6
               1
             1   1
           1   2   1
         1   3   3   1
       1   4   6   4   1
     1   5  10  10   5   1
   1   6  15  20  15   6   1

$ python .\src\ch04\22.py
> 0422
00000000  44    44  22222222  22222222
00000000  44    44  22222222  22222222
00    00  44    44        22        22
00    00  44    44        22        22
00    00  44444444  22222222  22222222
00    00  44444444  22222222  22222222
00    00        44  22        22
00    00        44  22        22
00000000        44  22222222  22222222
00000000        44  22222222  22222222

@StephLin
StephLin merged commit 2646b8e into OpenMCL:master Dec 25, 2022
@StephLin StephLin self-assigned this Dec 25, 2022
@StephLin StephLin added this to the v0.9.0 milestone Dec 25, 2022
@StephLin StephLin mentioned this pull request Dec 25, 2022
5 of 9 tasks
@StephLin
StephLin deleted the feature/chapter-4-solutions branch December 25, 2022 11:21
@StephLin StephLin added bug Something isn't working enhancement New feature or request labels Dec 25, 2022
@StephLin StephLin linked an issue Dec 25, 2022 that may be closed by this pull request
2 of 4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unfinished questions

1 participant