• 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
Shaddy Avatar
Name:Sherab Giovannini
Clan:ByteHeed
Member Since:Nov 2017
Last Seen:Feb 2020
Profiles:
Following:1
Followers:0
Allies:0
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (14)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • najamelan
    • commented on "Good vs Evil" rust solution
    • 4 years ago

    magic numbers in calculate function???

  • Custom User Avatar
    • rhymu8354
    • commented on "Good vs Evil" rust solution
    • 5 years ago

    I'd give you the most bonus points for keeping to the theme and role play!

  • Custom User Avatar
    • x10an14
    • commented on "Make the Deadfish swim" rust solution
    • 5 years ago

    Same! =D

  • Custom User Avatar
    • spazm
    • commented on "Good vs Evil" rust solution
    • 6 years ago

    I had a very similar solution, but I like that yours goes further by adding the Battle::Result enum with Display.

    Maybe take it a step further and impl PartialOrd for GoodSide and EvilSide?

  • Custom User Avatar
    • Torinion
    • commented on "Good vs Evil" rust solution
    • 6 years ago

    wtf dude

  • Custom User Avatar
    • prostomarkeloff
    • commented on "Good vs Evil" rust solution
    • 6 years ago

    Looks very very interesting!

  • Custom User Avatar
    • insideoutclub
    • commented on "Recover a secret string from random triplets" kata
    • 7 years ago

    You don't have flatten, but you can easily replace it with flat_map:

    let a = [vec![1, 3, 5], vec![7, 9]];
    // let flat = a.iter().flatten().collect::<Vec<_>>();
    let flat = a.iter().flat_map(|x| x).collect::<Vec<_>>();
    println!("{:?}", flat);
    
  • Custom User Avatar
    • Shaddy
    • commented on "Directions Reduction" kata
    • 7 years ago

    @Chrono79 I just did read the answers but thinking on a spiral staircase is one of the dumbest things I've heard on 2018 :D

  • Custom User Avatar
    • Shaddy
    • commented on "Directions Reduction" kata
    • 7 years ago

    I solved it by doing reductions, also let the solution to the problem as it is explained. I would suggest to just change the description and go on with this with another Kata, both are great but not mixed ;)

  • Custom User Avatar
    • Shaddy
    • commented on "Directions Reduction" kata
    • 7 years ago

    How is it possible that going to North => West => South => East doesn't lead to the starting point, so [] should be the return value?

  • Custom User Avatar
    • Shaddy
    • commented on "Make the Deadfish swim." rust solution
    • 7 years ago

    Exactly the same solution I came with. Best for sure :D

  • Custom User Avatar
    • Shaddy
    • commented on "Decode the Morse code, advanced" kata
    • 7 years ago

    This was a bit hard to understand at somepoint (more because of my fault than the exercise itself), but really amazing to solve. Would be great if we can solve the next
    version in Rust.

    Thanks for the Kata!

  • Custom User Avatar
    • Shaddy
    • commented on "Recover a secret string from random triplets" kata
    • 7 years ago

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

  • Custom User Avatar
    • Shaddy
    • commented on "RGB To Hex Conversion" javascript solution
    • 7 years ago

    We went into pretty much the same kind of solution. Bitness rocks :D

  • © 2025 Codewars
  • About
  • API
  • Blog
  • Privacy
  • Terms
  • Code of Conduct
  • Contact

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...