• 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
NathanWeinstein Avatar
Name:Nathan Weinstein
Clan:Unknown
Member Since:Dec 2017
Last Seen:Feb 2024
Profiles:
    Following:0
    Followers:0
    Allies:0
    View Profile Badges
    • Stats
    • Kata
    • Collections
    • Kumite
    • Social
    • Discourse
    • Conversations (22)
    • Replies
    • Authored
    • Needs Resolution
    • Custom User Avatar
      • hobovsky
      • commented on "Efficient recursive fibonacci" kata
      • 5 years ago

      Unpublishing as an old kata with low satisfaction rating, unresolved issues, and a close duplicate to exitsting kata.

    • Custom User Avatar
      • NathanWeinstein
      • commented on "Moves in squared strings (I)" kata
      • 8 years ago

      My C solution passes all the first 60 tests, after the 61st I get the following message:
      *** Error in `/home/codewarrior/solution': free(): invalid next size (fast): 0x00000000023bc960 ***

    • Custom User Avatar
      • iv2101
      • created an issue for "Efficient recursive fibonacci" kata
      • 8 years ago

      The biggest issue I have is that you want the solver to guess what's in your head. In this case it is woefully inefficient as Fibonacci numbers can be generated in logarithmic time while both bottom up and top down are linear.

      On a separate note, there are plenty of recursion and Fibonacci-related katas (e.g., this: https://www.codewars.com/kata/59928e2889d6a01970000051) that test for efficiency. There are also some bottom up vs top down katas; the one that comes to mind is https://www.codewars.com/kata/the-fusc-function-part-2

    • Custom User Avatar
      • NathanWeinstein
      • commented on "Efficient recursive fibonacci" kata
      • 8 years ago

      Is your helper function recursive? Please include your solution so I can see what is happening.

    • Custom User Avatar
      • anter69
      • commented on "Efficient recursive fibonacci" kata
      • 8 years ago

      Not really...

      I have an efficient, recursive function; I even created a helper function if you really stick to it (def fib_helper(*args): return :) But what are you testing?! I get:

      your solution should be recursive: False should equal True
      

      Believe me, it's recursive!

    • Custom User Avatar
      • NathanWeinstein
      • commented on "Helpers For a 3DGame I: Biggest Triangle in a Sphere" kata
      • 8 years ago

      I think this is quite hard for 4 kyu, but it was fun.

    • Custom User Avatar
      • siebenschlaefer
      • commented on "Efficient recursive fibonacci" kata
      • 8 years ago

      BTW: For very large n the trivial recursive and iterative versions might be too slow, so you might want to consider a non-trivial approach to Fibonacci numbers (see the-millionth-fibonacci-kata).

    • Custom User Avatar
      • emgordon154
      • commented on "Efficient recursive fibonacci" kata
      • 8 years ago

      wait, sorry, i shouldn't have marked this issue as resolved, i didn't really address your question

    • Custom User Avatar
      • emgordon154
      • resolved an issue on "Efficient recursive fibonacci" kata
      • 8 years ago

      That test case now specifies that it's testing that the function is recursive. :)

    • Custom User Avatar
      • emgordon154
      • resolved an issue on "Efficient recursive fibonacci" kata
      • 8 years ago

      fixed :)

    • Custom User Avatar
      • Voile
      • created an issue for "Efficient recursive fibonacci" kata
      • 8 years ago

      Okay, so what exactly do you expect the helper function to do? You told us to use a helper function but you didn't tell us what it's going to do. All we get is input fi=377, fj=610, n=3, and False should equal True in the tests.

    • Custom User Avatar
      • Voile
      • created an issue for "Efficient recursive fibonacci" kata
      • 8 years ago

      This comment is hidden because it contains spoiler information about the solution

    • Custom User Avatar
      • NathanWeinstein
      • commented on "Efficient recursive fibonacci" kata
      • 8 years ago

      The other kata asks for simple recursion (top down) which calculates the same value several times, this one asks for botom-up recursion which can calculate the fibonacci element for a higher n. I think it is trying to teach something very different.

    • Custom User Avatar
      • smile67
      • commented on "Efficient recursive fibonacci" kata
      • 8 years ago

      There's not really a difference to this one (language doesn't matter): https://www.codewars.com/kata/recursion-number-2-fibonacci
      Probably this should be an issue...;-)

    • Custom User Avatar
      • g964
      • commented on "Common Denominators" kata
      • 8 years ago

      For the time being CW times out with every kata I tried...

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

    Confirm

    • Cancel
    • Confirm

    Collect: undefined

    Loading collection data...