• 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
iCoderXXI Avatar
Name:Unknown
Clan:iCoderXXI
Skills:es5/es2015+, react.js+redux+immutable+router+styled, mysql, node.js, php, html, css3/scss, git, linux/ubuntu, ssh
Member Since:Mar 2016
Last Seen:Feb 2022
Profiles:
    Following:55
    Followers:67
    Allies:50
    View Profile Badges
    • Stats
    • Kata
    • Collections
    • Kumite
    • Social
    • Discourse
    • Conversations
    • Replies
    • Authored (18)
    • Needs Resolution
    • Custom User Avatar
      • iCoderXXI
      • commented on "Most frequently used words in a text" javascript solution
      • 6 years ago

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

    • Custom User Avatar
      • iCoderXXI
      • commented on "Sorting with alternation" kata
      • 6 years ago

      Hi!

      ex: [
      { r: 1, t: 1, i: 1},
      { r: 1, t: 1, i: 2},
      { r: 1, t: 1, i: 3},
      { r: 1, t: 2, i: 4},
      { r: 1, t: 2, i: 5},
      { r: 1, t: 2, i: 6},
      { r: 1, t: 3, i: 7},
      { r: 1, t: 3, i: 8},
      { r: 1, t: 3, i: 9},
      { r: 1, t: 4, i: 10},
      { r: 1, t: 4, i: 11},
      { r: 1, t: 4, i: 12}
      ]

      sorted: [
      { r: 1, t: 1, i: 1 },
      { r: 1, t: 2, i: 4 },
      { r: 1, t: 3, i: 7 },
      { r: 1, t: 4, i: 10 },
      { r: 1, t: 1, i: 2 },
      { r: 1, t: 2, i: 5 },
      { r: 1, t: 3, i: 8 },
      { r: 1, t: 4, i: 11 },
      { r: 1, t: 1, i: 3 },
      { r: 1, t: 2, i: 6 },
      { r: 1, t: 3, i: 9 },
      { r: 1, t: 4, i: 12 }
      ]

      If you look at t, you'll see that there're 4 different types (1, 2, 3, 4) x3 of each, so they should be sorted as following 1, 2, 3, 4, 1, 2, 3, 4, 1, 2, 3, 4.
      If we mark each item of the same type by a letter, we will get (1a, 1b, 1c) and so on, and final sorting should look as following got types: 1a, 2a, 3a, 4a, 1b, 2b, 3b, 4b, 1c, 2c, 3c, 4c.

      output: '1:4:7:10:2:5:8:11:3:6:9:12';

    • Custom User Avatar
      • iCoderXXI
      • resolved an issue on "Sorting with alternation" kata
      • 6 years ago

      Replaced test cases. Thanx a lot! You're great! :)

    • Custom User Avatar
      • iCoderXXI
      • commented on "Sorting with alternation" kata
      • 6 years ago

      Fixed that sample test. thanx.

    • Custom User Avatar
      • iCoderXXI
      • commented on "Find out if some binary number is divisible by N" kata
      • 7 years ago

      Thank you. Fixed that.

    • Custom User Avatar
      • iCoderXXI
      • commented on "Find out if some binary number is divisible by N" javascript solution
      • 7 years ago

      Make your job and publish random tests;-)!

      Job's done. :)

      By the way it's not really a cheat, but a solution for your task.

      Not anymore... ;)

    • Custom User Avatar
      • iCoderXXI
      • commented on "Find out if some binary number is divisible by N" kata
      • 7 years ago

      Added way more totally random tests. Have a nice solving :)

    • Custom User Avatar
      • iCoderXXI
      • commented on "Find out if some binary number is divisible by N" javascript solution
      • 7 years ago

      Try solving this task in real please, no cheating... :)

    • Custom User Avatar
      • iCoderXXI
      • commented on "Find out if some binary number is divisible by N" javascript solution
      • 7 years ago

      Try solving this task in real please, no cheating... :)

    • Custom User Avatar
      • iCoderXXI
      • commented on "Find out if some binary number is divisible by N" javascript solution
      • 7 years ago

      Try solving this task in real please, no cheating... :)

    • Custom User Avatar
      • iCoderXXI
      • commented on "Find out if some binary number is divisible by N" javascript solution
      • 7 years ago

      Try solving this task in real please, no cheating... :)

    • Custom User Avatar
      • iCoderXXI
      • resolved an issue on "Find out if some binary number is divisible by N" kata
      • 7 years ago

      Addded some randomness to the tests :)

    • Custom User Avatar
      • iCoderXXI
      • commented on "Find out if some binary number is divisible by N" kata
      • 7 years ago

      Sorry, that was very late in night. I was thinking on adding random tests later.

    • Custom User Avatar
      • iCoderXXI
      • commented on "Find out if some binary number is divisible by N" kata
      • 7 years ago

      Bunary number can have leading zeroes.
      I think you will get timeout on brute force.

      Conjure black magic please :)

    • Custom User Avatar
      • iCoderXXI
      • resolved an issue on "Print chains" kata
      • 8 years ago

      Sorry, my bad. Fixed that.

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

    Confirm

    • Cancel
    • Confirm

    Collect: undefined

    Loading collection data...