• 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
Daniel Ray Avatar
Name:Daniel Ray
Clan:Unknown
Member Since:Aug 2017
Last Seen:May 2025
Profiles:
Following:6
Followers:9
Allies:2
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (200)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • SpandexTiger
    • commented on "Promenade Fractions (from BIO 2016)" kata
    • 7 months ago

    yup, still can't make sense of it after understanding the solutions.

  • Custom User Avatar
    • dbtx
    • commented on "Promenade Fractions (from BIO 2016)" kata
    • 7 months ago

    What do m and s even represent?

    past or present denominators, or defaults

    If the value before the most recent left choice was l/m and the value before the most recent right choice was r/s then the new value will be (l+r) / (m+s).

    That line, paraphrased / decoded / whatever:

    (l+r)/(m+s) is each new fraction (next iteration), before substitution and simplification. Let l/m represent whatever the fraction was, just before you most recently parsed an L choice. Let r/s represent whatever the fraction was, just before you most recently parsed an R choice.

    This is how values of l, r, m, s are obtained most often. But l = 1, r = 0, m = 0, s = 1 are defaults, used when there is no previously parsed L or R (or neither, as shown in the way that the initial 1/1, corresponding to the empty string, is formed entirely out of them).

    HTH

  • Custom User Avatar
    • AntonioG08
    • commented on "Promenade Fractions (from BIO 2016)" kata
    • 7 months ago

    Same here, I took my notebook and wrote the numbers, the fractions, tried to find a pattern but nothing. I'm not quite following the explanation, this is a problem that most likely would be solved in lets say 10-15 lines maybe, but man I can't even find the logic. If someone can explain it I would appreciate it a lot.

  • Custom User Avatar
    • dfhwze
    • commented on "Promenade Fractions (from BIO 2016)" kata
    • 7 months ago

    javascript translation added and made description language-agnostic

  • Custom User Avatar
    • dfhwze
    • resolved a suggestion on "Promenade Fractions (from BIO 2016)" kata
    • 7 months ago

    approved some while ago

  • Custom User Avatar
    • Devemon
    • commented on "Simple string reversal II" python solution
    • 7 months ago

    Clever, but this code is less readable than if you split it into several functions with explicit names.

  • Custom User Avatar
    • dfhwze
    • commented on "Binary Tree Top Line" kata
    • 7 months ago

    this image should really be in the description

  • Custom User Avatar
    • Madjosz
    • commented on "Fake Binary" haskell solution
    • 12 months ago

    Yesn't, Char is an instance of Ord where the characters are ordered by their unicode codepoint. It does not really "threat them as they were numbers" but deep down at some point everything is an int eventually.

  • Custom User Avatar
    • 76th Street
    • commented on "Fake Binary" haskell solution
    • 13 months ago

    wait, Haskell treats chars the same way as if they were numbers? like, he automatically converts char to number like ord() in python?

  • Custom User Avatar
    • saudiGuy
    • created a suggestion for "Promenade Fractions (from BIO 2016)" kata
    • 16 months ago

    python new test framework is required. updated in this fork

  • Custom User Avatar
    • ThirdRevelation
    • commented on "Pythagorean Triple" python solution
    • 2 years ago

    And now I know about the sorted() function...I love it.

  • Custom User Avatar
    • realitant
    • commented on "[Code Golf] Get the Square of a Number without ** or * or pow()" python solution
    • 2 years ago

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

  • Custom User Avatar
    • farhanaditya
    • commented on "Get the square of a number without ** or * or pow()" python solution
    • 3 years ago

    nice, never knew this concept.

  • Custom User Avatar
    • Dess1996
    • commented on "Number of Divisions" python solution
    • 4 years ago

    So interesting solution

  • Custom User Avatar
    • Amel Haracic
    • commented on "Array plus array" cpp solution
    • 4 years ago

    nice code, clean :)

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

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...