• 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
nirvanflame Avatar
Name:nf
Clan:Lufthansa Systems
Skills:trash talk & flirt & twerk
Member Since:Jan 2018
Last Seen:Nov 2024
Profiles:
Following:4
Followers:4
Allies:2
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (10)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • nirvanflame
    • commented on "Remove the minimum" java solution
    • 11 months ago

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

  • Custom User Avatar
    • nirvanflame
    • commented on "Holiday III - Fire on the boat" kotlin solution
    • 2 years ago

    I don't remember. Probably ignoreCase = true;

    https://devdocs.io/kotlin~1.8/api/latest/jvm/stdlib/kotlin.text/replace

    fun String.replace(
        oldChar: Char, 
        newChar: Char, 
        ignoreCase: Boolean = false
    ): String
    
  • Custom User Avatar
    • Encription0001
    • commented on "Holiday III - Fire on the boat" kotlin solution
    • 2 years ago

    what is true here for?

  • Custom User Avatar
    • nirvanflame
    • commented on "SQL with Street Fighter: Total Wins" kata
    • 2 years ago

    need to sum not cound, wasted 30 minutes debuging, better read comments

  • Custom User Avatar
    • nirvanflame
    • commented on ""String incrementer" Java Translation"
    • 3 years ago

    Hi, totaly agree with you.
    I've just forked someones solution.
    Thank you for merging!)

  • Custom User Avatar
    • jcsahnwaldt
    • commented on ""String incrementer" Java Translation"
    • 3 years ago

    Never mind, I'll just approve the translation and fix these little issues myself. :-) Thanks!

  • Custom User Avatar
    • jcsahnwaldt
    • commented on ""String incrementer" Java Translation"
    • 3 years ago

    Hi! Thanks for the translation. I'd like to approve it, but I have one or two questions...

    I'd say moving test code into preloaded code is OK in case that test code is very complex or you want to hide some secrets.

    But in this case, doTest just does the usual assertEquals. I think it's confusing to hide assertEquals behind Preloaded.doTest. You could simply inline all calls of Preloaded.doTest and remove the preloaded code.

  • Custom User Avatar
    • nirvanflame
    • commented on "How long is the cable? " kata
    • 3 years ago

    It's not a bug, it just performance test...
    You went over primitive range.

  • Custom User Avatar
    • nirvanflame
    • commented on "How long is the cable? " kata
    • 3 years ago

    For a new pple, exceptions should be created outside SoulutionTest.class like a regular multiple classes in one file.

  • Custom User Avatar
    • nirvanflame
    • commented on "Playing with digits" kotlin solution
    • 4 years ago

    Hi, I think casting n.toDouble() and then i.toInt() could be simplified.
    Check examples:

    12 % 1
    res0: kotlin.Int = 0
    
    12.123 % 1
    res1: kotlin.Double = 0.12299999999999933
    
    2.0 % 1
    res2: kotlin.Double = 0.0
    
    123 % 1.0
    res3: kotlin.Double = 0.0
    
  • © 2025 Codewars
  • About
  • API
  • Blog
  • Privacy
  • Terms
  • Code of Conduct
  • Contact

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...