• Sign Up
    Time to claim your honor
  • Training
  • Practice
    Complete challenging Kata to earn honor and ranks. Re-train to hone technique
  • Freestyle Sparring
    Take turns remixing and refactoring others code through Kumite
  • Community
  • Leaderboards
    Achieve honor and move up the global leaderboards
  • Chat
    Join our Discord server and chat with your fellow code warriors
  • Discussions
    View our Github Discussions board to discuss general Codewars topics
  • About
  • Docs
    Learn about all of the different aspects of Codewars
  • Blog
    Read the latest news from Codewars and the community
  • Log In
  • Sign Up
pmarek Avatar
Name:Unknown
Clan:FH Hof
Member Since:Oct 2016
Last Seen:Nov 2016
Profiles:
Following:5
Followers:4
Allies:4
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (22)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • 3au4onok
    • commented on "Fac Recursion (Pest control - find the bugs and fix them)" kata
    • 2 years ago

    This is an Idiot test, the author checks that you really use recursion or not. This quest is over 7 years old, so forgive him for that

  • Custom User Avatar
    • Unixfscker
    • commented on "Fac Recursion (Pest control - find the bugs and fix them)" kata
    • 2 years ago

    Your function did not recurse enough times - Expected: 4, instead got: 3

    Why it's occurs ? My solution is completely written in a recursive way

  • Custom User Avatar
    • Voile
    • commented on "Fac Recursion (Pest control - find the bugs and fix them)" kata
    • 8 years ago

    A recursive function is still recursive even if it's a lambda, so it's perfectly according to specs. This has nothing to do with "bugfix" or anything.

    And of course, relying on Function.prototype.toString is not the best practice because, you know, you can just obtain the user solution code.

  • Custom User Avatar
    • matt c
    • commented on "Fac Recursion (Pest control - find the bugs and fix them)" kata
    • 8 years ago

    Note: this is a bug fixing kata, whose definition is something like "fix bugs" not modify the current function completely which is what you would be doing if you would make it a lambda. I don't believe this is actually an issue... and If relying on Function.prototype.toString() is really an issue then you can restore it from a instance instead of using a potentially modified one?

  • Custom User Avatar
    • Voile
    • created an issue for "Fac Recursion (Pest control - find the bugs and fix them)" kata
    • 8 years ago

    Recursion checking code does not work with lambdas.

    It also relies on Function.prototype.toString().

  • Custom User Avatar
    • Voile
    • commented on "Fac Recursion (Pest control - find the bugs and fix them)" kata
    • 8 years ago

    Note that your code breaks for lambdas.

  • Custom User Avatar
    • jgrubard
    • commented on "Fac Recursion (Pest control - find the bugs and fix them)" kata
    • 8 years ago

    my code passes 7 tests and fails 1. not sure what the last case is testing, so I don't know how to correct my code.

  • Custom User Avatar
    • pmarek
    • resolved an issue on "Fac Recursion (Pest control - find the bugs and fix them)" kata
    • 9 years ago

    Well, random tests are in it, so I guess this is resolved? I must say, this is pretty funny :)

  • Custom User Avatar
    • pmarek
    • commented on "Fac Recursion (Pest control - find the bugs and fix them)" kata
    • 9 years ago

    Well, I applied your solution, but I'm not entirely sure what it did :D

  • Custom User Avatar
    • user5036852
    • commented on "Fac Recursion (Pest control - find the bugs and fix them)" kata
    • 9 years ago

    good. :-)

  • Custom User Avatar
    • pmarek
    • commented on "Fac Recursion (Pest control - find the bugs and fix them)" kata
    • 9 years ago

    Well, I think I added random tests, at least I hope these are the kind of tests you expected :D

  • Custom User Avatar
    • user5036852
    • commented on "Fac Recursion (Pest control - find the bugs and fix them)" kata
    • 9 years ago

    Hey matt, there are two translations for your very good kata "Large Factorials".

  • Custom User Avatar
    • matt c
    • commented on "Fac Recursion (Pest control - find the bugs and fix them)" kata
    • 9 years ago

    if it enforced the requirement of recursion and some percentage of change being a bug fixing kata then it would probably be unique enough to not be considered a duplicate?

  • Custom User Avatar
    • g964
    • commented on "Fac Recursion (Pest control - find the bugs and fix them)" kata
    • 9 years ago

    Maybe but you don't almost have anything to change... Recursive factorials are everywhere:-)

  • Custom User Avatar
    • matt c
    • commented on "Fac Recursion (Pest control - find the bugs and fix them)" kata
    • 9 years ago

    I'll do some testing and get back with a solution :)

  • Loading more items...
  • © 2025 Codewars
  • About
  • API
  • Blog
  • Privacy
  • Terms
  • Code of Conduct
  • Contact

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...