• 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
pjbaldwin Avatar
Name:Unknown
Clan:DigIO
Member Since:May 2017
Last Seen:Jan 2025
Profiles:
    Following:145
    Followers:141
    Allies:141
    View Profile Badges
    Ad
    8 Reasons Why Codewarriors Practice Coding with Codewars
    Not everyone trains the same. Discover new ways to leverage Codewars in your education and career.
    • Stats
    • Kata
    • Collections
    • Kumite
    • Social
    • Discourse
    • Conversations (35)
    • Replies
    • Authored
    • Needs Resolution
    • Custom User Avatar
      • tobeannouncd
      • created a suggestion for "Tolkien's Book Cart" kata
      • 6 months ago

      Haskell translation

    • Custom User Avatar
      • ahmet_popaj
      • commented on "Tolkien's Book Cart" kata
      • 8 months ago

      Very fancy kata indeed, congratulations.

    • Custom User Avatar
      • ahmet_popaj
      • commented on "Tolkien's Book Cart" kata
      • 8 months ago

      In this kata you've got to minimize the total amount of the purchase price by buying different titles which correspond to different letters of the given array and applying the shown discounts.

    • Custom User Avatar
      • RustamNigmatullin
      • commented on "Tolkien's Book Cart" kata
      • 2 years ago

      Swift:
      please fix error in tests:
      Tolkien().calculateCartTotal(["F", "T", "H", "F", "T", "R"])
      (add brackets)

    • Custom User Avatar
      • anter69
      • created a suggestion for "Tolkien's Book Cart" kata
      • 2 years ago

      Python, Ruby (at least): examples in the description should be included in the sample tests

    • Custom User Avatar
      • dfhwze
      • resolved a suggestion on "Tolkien's Book Cart" kata
      • 2 years ago
    • Custom User Avatar
      • mauro-1
      • created a suggestion for "Tolkien's Book Cart" kata
      • 2 years ago

      Python translation: https://www.codewars.com/kumite/647fac2524fe6dfd78ccdb61?sel=647fac2524fe6dfd78ccdb61

    • Custom User Avatar
      • ejini战神
      • created an issue for "Tolkien's Book Cart" kata
      • 3 years ago
      • Initial solution in JS failed to compile due to wrong naming convention used

      • Parameter name should be camelCase

    • Custom User Avatar
      • ejini战神
      • resolved a suggestion on "Tolkien's Book Cart" kata
      • 3 years ago

      fixed some time ago

    • Custom User Avatar
      • BridgeTheGap
      • commented on "Tolkien's Book Cart" kata
      • 8 years ago

      The description for two books needs to be fixed. Since it doesn't show anywhere that they apply only if they are different, I had to fail the test to realize that was not the case. Loved the Kata nonetheless. Great for practicing TDD, and is all about business logic.

    • Custom User Avatar
      • omegahm
      • resolved a question on "Tolkien's Book Cart" kata
      • 8 years ago

      I was able to figure out the problem and have edited the kata to actually work.

    • Custom User Avatar
      • omegahm
      • commented on "Tolkien's Book Cart" kata
      • 8 years ago

      Yep, I am running into this problem as well.

    • Custom User Avatar
      • richardcrng
      • created a question for "Tolkien's Book Cart" kata
      • 8 years ago

      In Ruby, I'm passing all the set tests but getting an error for the random tests, below - any thoughts on what's going wrong?

      block in sum_book_sets' each_index'
      sum_book_sets' ref_ans'
      block (3 levels) in ' each'
      `block (2 levels) in
      '

    • Custom User Avatar
      • pjbaldwin
      • commented on "Molecule to atoms" kata
      • 8 years ago

      You are correct in your suspicion, there are no chemical symbols that consist of more than two letters. On the other hand, there are molecules with double-digit numbers of atoms, e.g. C6H12O6.

    • Custom User Avatar
      • Voile
      • resolved an issue on "Tolkien's Book Cart" kata
      • 8 years ago

      Resolved?

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

    Confirm

    • Cancel
    • Confirm

    Collect: undefined

    Loading collection data...