• 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
MusicalCoder Avatar
Name:Musical Coder
Clan:Unknown
Member Since:Aug 2016
Last Seen:Mar 2025
Profiles:
Following:0
Followers:1
Allies:0
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations
  • Replies
  • Authored (21)
  • Needs Resolution
  • Custom User Avatar
    • MusicalCoder
    • commented on "Basic Mathematical Operations" python solution
    • 2 years ago

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

  • Custom User Avatar
    • MusicalCoder
    • commented on "Financing a purchase" kata
    • 7 years ago

    test.assert_equals(amort(5.6, 133555, 60, 53), "num_payment 53 c 2557 princ 2464 int 93 balance 17571")

    I kept failing this due to rounding - my int was 94

  • Custom User Avatar
    • MusicalCoder
    • commented on "Basic Mathematical Operations" python solution
    • 9 years ago

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

  • Custom User Avatar
    • MusicalCoder
    • commented on "Naming Files" python solution
    • 9 years ago

    very similar to what I did

  • Custom User Avatar
    • MusicalCoder
    • commented on "Keep the Order" python solution
    • 9 years ago

    this is what I did as well!

  • Custom User Avatar
    • MusicalCoder
    • commented on "Jaden Casing Strings" python solution
    • 9 years ago

    other than spacing, this is what I did!

  • Custom User Avatar
    • MusicalCoder
    • commented on "Find Maximum and Minimum Values of a List" python solution
    • 9 years ago

    I didn't put a # sign, I just left it blank...

  • Custom User Avatar
    • MusicalCoder
    • commented on "My head is at the wrong end!" python solution
    • 9 years ago

    My solution as well...

  • Custom User Avatar
    • MusicalCoder
    • commented on "Is this my tail?" python solution
    • 9 years ago

    Other than putting tail on the left of the ==, this is what I did!

  • Custom User Avatar
    • MusicalCoder
    • commented on "Fake Binary" python solution
    • 9 years ago

    Other than using d for digit instead of c, this is what I did!!!

  • Custom User Avatar
    • MusicalCoder
    • commented on "Find The Duplicated Number in a Consecutive Unsorted List - Tougher Version" python solution
    • 9 years ago

    No - there is no cost overhead for calling len twice... technically, there is more overhead for storing a new variable in memory to hold a value that is already in memory...

    I had actually asked about this on the learn python reddit a couple months ago... and I was informed that part of the arr variable is its length - its already stored in memory as part of the list, so when you call len(list), its just accessing that variable...

    And while it's negligible, the new variable that you create (l) is actually simply duplicating a value already stored in memroy...

    that was my TIL that day!!!

  • Custom User Avatar
    • MusicalCoder
    • commented on "Product of consecutive Fib numbers" python solution
    • 9 years ago

    +1 Clever!!!

    I did almost the same thing... I used a list to hold the fib #s... but looking at yours, I realized that you don't need the list to store the past numbers in the sequence!

  • Custom User Avatar
    • MusicalCoder
    • commented on "Find The Duplicated Number in a Consecutive Unsorted List - Tougher Version" python solution
    • 9 years ago

    i did this as well (using sum of consecutive integers)! Only I didn't use max(arr) as the length of arr was already one of the #s needed in the calculation!

  • Custom User Avatar
    • MusicalCoder
    • commented on "Find The Duplicated Number in a Consecutive Unsorted List - Tougher Version" python solution
    • 9 years ago

    i did this as well (using sum of consecutive integers)! Only I didn't use the l variable, as len(arr) is already 'attached' to the arr variable, so its the same as looking up l...

  • Custom User Avatar
    • MusicalCoder
    • commented on "Find The Duplicated Number in a Consecutive Unsorted List - Tougher Version" python solution
    • 9 years ago

    i did this as well (using sum of consecutive integers)! Only I didn't use the l variable, as len(arr) is already 'attached' to the arr variable, so its the same as looking up l...

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

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...