• 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
joelpeyton Avatar
Name:Joel Peyton
Clan:Open University
Skills:c++, java, python, javascript, ccs, html
Member Since:Feb 2018
Last Seen:Oct 2022
Profiles:
Following:60
Followers:59
Allies:59
View Profile Badges
Ad
Would You Pass the Google SQL Interview? Test Yourself with These 7 Concepts
Study up for your next SQL interview with these interview questions.
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (19)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • dfhwze
    • resolved a suggestion on "Largest Palindromic Product" kata
    • 2 years ago

    both users no longer active

  • Custom User Avatar
    • dfhwze
    • resolved a suggestion on "Largest Palindromic Product" kata
    • 2 years ago

    duplicate suggestion

  • Custom User Avatar
    • davilla
    • created an issue for "Convert recurring decimal to fraction" kata
    • 5 years ago

    Not only does this kata not do a thorough job of testing, I suspect the solution tested against to be wrong. I just ran all of the other verified solutions against this:

    convert(0.909, '09')  # expect 10/11
    convert(0.90, '90')  # expect 10/11
    

    and none of them give the right result for the second line. To be fair, one works correctly when passing in 0.9090 and another with 0.909090, but partial credit isn't quite the same thing as correct, is it?

    Although my inital solution accidentally passes on this test, there are similar cases where it failed. I know how to patch my code, if only there were a way to edit a submission without resubmitting a new one. That' just brilliant. I've resubmitted my patched code and forked too. Not sure the difference.

  • Custom User Avatar
    • JohanWiltink
    • commented on "Convert recurring decimal to fraction" kata
    • 5 years ago

    Do you still feel this way?

  • Custom User Avatar
    • rnelsonee
    • created an issue for "Convert recurring decimal to fraction" kata
    • 6 years ago

    I haven't been on codewars long, but I feel like any kata that requires importing modules shouldn't be 8 or 7 kyu. Or there should be a mention of the module to import in the description.

  • Custom User Avatar
    • aMoniker
    • commented on "Largest Palindromic Product" kata
    • 6 years ago

    Sure, post it and I'll add.

  • Custom User Avatar
    • joelpeyton
    • created a suggestion for "Largest Palindromic Product" kata
    • 6 years ago

    I have a Python solution if interested

  • Custom User Avatar
    • joelpeyton
    • created a suggestion for "Largest Palindromic Product" kata
    • 6 years ago

    I have a Python solution if interested

  • Custom User Avatar
    • krishp
    • commented on "Convert recurring decimal to fraction" kata
    • 6 years ago

    How would someone use a while loop in python for a kata like this?

  • Custom User Avatar
    • joelpeyton
    • resolved an issue on "Convert recurring decimal to fraction" kata
    • 6 years ago

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

  • Custom User Avatar
    • joelpeyton
    • resolved an issue on "Convert recurring decimal to fraction" kata
    • 6 years ago

    Updated test cases

  • Custom User Avatar
    • ZED.CWT
    • commented on "Convert recurring decimal to fraction" kata
    • 6 years ago

    Well, the common setup could be

    func ref(){} | Your solution
    
    for 100 times
    {
        input = generated()
        expected = ref(input)
        AssertEquals(usersolution(input),expected)
    }
    
    
  • Custom User Avatar
    • joelpeyton
    • commented on "Convert recurring decimal to fraction" kata
    • 6 years ago

    OK my solution works for 0.8088 and 65.666, but only if the recurring part is shown as '88' and '66' respectively. This I did know when testing against similar test cases and I made allowances for it by doubling up the recurring digit.

    Your solution doesn't require it.

  • Custom User Avatar
    • joelpeyton
    • commented on "Convert recurring decimal to fraction" kata
    • 6 years ago

    Ha that, second test has exposed a flaw in my solution. We get different answers for that case, when I run them side by side, so I'm going to assume yours is the better solution.

  • Custom User Avatar
    • joelpeyton
    • commented on "Convert recurring decimal to fraction" kata
    • 6 years ago

    Thanks for feedback, as you'll have noticed this is my first attempt at creating a kata, curious as to how I can go about generating random tests, or do I literally generate a list of random recurring decimals, and run them through my algo to get correct results?

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

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...