• 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
  • Career
  • Opportunities
    Find your next career challenge – powered by Qualified Jobs
  • 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
  • Log In
  • Sign Up
-freedom- Avatar
Name:★ F R E E D O M ★
Clan:Americana
Member Since:Aug 2021
Last Seen:May 2022
Profiles:
Following:3
Followers:3
Allies:2
View Profile Badges
Ad
Promoted
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (34)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • LesRamer
    • commented on "Recover a secret string from random triplets" javascript solution

    Keep in mind that this kata is not tagged as a performance kata. It is not calling for code to be tuned/optimized. This solution runs more than fast enough to finish within the 12 seconds that codewars allows.

    Had this been an actual performance kata, I would have tuned my approach until it finished the test cases in the allowed time.

    I suggest creating a performance variant of this kata if you're interested in taking it there. The problem sizes for this kata is currently limited to 26 letters. You'd want to mark the new kata with a performance tag and test and include tests that would keep naive or unoptimized solutions from finishing within Codewars' 12 second limit.

  • Custom User Avatar
    • -freedom-
    • commented on "Convert a Boolean to a String" dart solution

    Probably one of the most round-about ways. Clever nonetheless!

  • Custom User Avatar
    • -freedom-
    • commented on "Convert a Boolean to a String" dart solution

    Very clever!

  • Custom User Avatar
    • -freedom-
    • commented on "Sum of odd numbers" dart solution

    Thanks, @akar-0. I guessed as much.

  • Custom User Avatar
    • akar-0
    • commented on "Sum of odd numbers" dart solution

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

  • Custom User Avatar
    • -freedom-
    • commented on "Sum of odd numbers" dart solution

    How come you don't get this one?

    Error: A value of type 'num' can't be returned from a function with return type 'int'

  • Custom User Avatar
    • -freedom-
    • commented on "Sum of odd numbers" dart solution

    How come you don't get Error: A value of type 'num' can't be returned from a function with return type 'int'?

  • Custom User Avatar
    • -freedom-
    • commented on "Row Weights" dart solution

    Could you explain why you omitted the type declaration List<int> arr in the function argument?

  • Custom User Avatar
    • -freedom-
    • commented on "Beginner - Reduce but Grow" kata

    Why the instruction to multiply "in order"?

  • Custom User Avatar
    • -freedom-
    • commented on "Beginner - Reduce but Grow" dart solution

    I found the instruction to multiply "in order" rather odd because by the commutative property of multiplication, sorting the elements does not change the final result.

  • Custom User Avatar
    • -freedom-
    • commented on "Sum Arrays" dart solution

    Thanks for including all of these options. Insightful.

  • Custom User Avatar
    • -freedom-
    • commented on "Calculating with Functions" kata

    💯

  • Default User Avatar
    • TundeSzne
    • commented on "Calculating with Functions" kata

    Hi,
    I only managed to solve this Kata with using eval(), but I learned a lot from others' solutions.

    You can read why it is not a good thing to use eval() here:
    Here: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/eval

    "Never use eval()!
    eval() is a dangerous function, which executes the code it's passed with the privileges of the caller. If you run eval() with a string that could be affected by a malicious party, you may end up running malicious code on the user's machine with the permissions of your webpage / extension. More importantly, a third-party code can see the scope in which eval() was invoked, which can lead to possible attacks in ways to which the similar Function is not susceptible. "

  • Custom User Avatar
    • -freedom-
    • commented on "Additionless addition." kata

    Fantastic challenge!

  • Custom User Avatar
    • -freedom-
    • commented on "Calculator" kata

    Haha! Did any of us not try eval?

  • Loading more items...
  • © 2022 Codewars
  • About
  • API
  • Announcements
  • Privacy
  • Terms
  • Contact
  • powered by

Confirm

  • Cancel
  • Confirm

Collect: kata

Loading collection data...

Add To My Collections
    • View
      Remove Add
    You have not created any collections yet.

    Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.

    Get started now by creating a new collection.

    You must wait until you have earned at least 20 honor before you can create new collections.

Set the name for your new collection. Remember, this is going to be visible by everyone so think of something that others will understand.

Create & Add New Collection