4 kyu
Church Numerals - Prefix is Overrated
Loading description...
Algorithms
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
pow
is not very difficult to implement. Maybe it should be added and tested?Depending on how you do
mul
andsub
,pow
may feel not very difficult, or just plain impossible ( though it obviously isn't ).I'm happy there is a solution for
pow
, but I think I prefer havingpow
for Bonus Points. I'm not aiming for highest possible rank, more for ( some ) accessibility. Don't underestimate yourself - you solved it a lot faster than I wrote it. ( I took days! ) If people can doadd, mul, sub
, I'm inclined to let them have the kata.Congratulations on your Bragging Rights!
It is a good kata even without
pow
. A real challenge is to implementdiv
andmod
with all other operations (includingpow
). Is it possible? I don't know.