Cofounded Host Collective (DiscountASP.net). Cofounded Player Axis (Social Gaming). Computer Scientist and Technology Evangelist with 20+ years of experience with JavaScript!
Cofounded Host Collective (DiscountASP.net). Cofounded Player Axis (Social Gaming). Computer Scientist and Technology Evangelist with 20+ years of experience with JavaScript!
Cofounded Host Collective (DiscountASP.net). Cofounded Player Axis (Social Gaming). Computer Scientist and Technology Evangelist with 20+ years of experience with JavaScript!
Cofounded Host Collective (DiscountASP.net). Cofounded Player Axis (Social Gaming). Computer Scientist and Technology Evangelist with 20+ years of experience with JavaScript!
Cofounded Host Collective (DiscountASP.net). Cofounded Player Axis (Social Gaming). Computer Scientist and Technology Evangelist with 20+ years of experience with JavaScript!
Cofounded Host Collective (DiscountASP.net). Cofounded Player Axis (Social Gaming). Computer Scientist and Technology Evangelist with 20+ years of experience with JavaScript!
There is no restriction to call
K
, right?Done! Both of these should output dog.
Update: You can actually put anything you want instead of cat. Or complicate it even more with infinite recursive inputs.
I assumed the other solution would have been found first.
Congratulations!
Well I updated with other solution.
haha I didn't consider
K(dog)()
would be within the rules. I have updated to rules to require bothdog
andcat
to appear exactly once ;)Lol no! You cannot change the rules after I won :P
I'm still giving you credit for both solutions ;)
Very creative!
That violates
K(dog)()
K(K)()(dog)()
K(K(K)()(dog))(K)()
I added that rule in afterwards. These solutions were valid at the time he posted, so I'll give him credit for the creativity :)
I was the first to solve his problem :D
He changed the rules after I posted my solution.
Check the comments.
There is also a solution with a single call to
K
:)