• 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
malandr Avatar
Name:Andrii
Clan:none
Skills:java, js, go
Member Since:Sep 2018
Last Seen:Jun 2025
Profiles:
Following:545
Followers:538
Allies:536
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (20)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • malandr
    • created a suggestion for "Remove exclamation marks" kata
    • 16 months ago

    Hello.

    Could you plese review and approve the Translation for GROOVY - https://www.codewars.com/kumite/65fdbe00825c8314779bd103?sel=65fdbe00825c8314779bd103.

    Thank you

  • Custom User Avatar
    • Madjosz
    • commented on ""Recursion #1 - Factorial" Java Translation"
    • 3 years ago
    • As in the original translation: "Please don't use public for the reference solution..."
    • For the recursion test I would test that the method was actually called with arguments n, n-1, ..., 1 via ArgumentCaptors since you can just call factorial(0) n-1 times and then calculate with a for loop or so. Additionally the recursion should not force to stop at n==1 but could also go to n==0 so exactly n times is too restrictive. Also I would recommend to use a bigger value for this test as n==2 can be rolled and this not really representative value to check for recursion.
    • You can go up to n==20 in the random tests without overflowing long range.
    • Please do some more random tests, e.g. 10
    • If you want to put the effort in you could update to JUnit 5 and use org.junit.jupiter.params.ParameterizedTest and org.junit.jupiter.api.RepeatedTest
  • Custom User Avatar
    • malandr
    • commented on "Sort Numbers" haskell solution
    • 3 years ago

    Ehhh... very simple :) Looks good

  • Custom User Avatar
    • malandr
    • commented on ""Recursion #1 - Factorial" Java Translation"
    • 3 years ago

    Hello @user8436785 ,

    Forked and added this translation - https://www.codewars.com/kumite/5d0437ab11bd8c002086eeaa?sel=62b6cf6d0ee74b011f9f9458

  • Custom User Avatar
    • oliverboehme
    • commented on ""Parse nice int from char problem" Kotlin Translation"
    • 3 years ago

    Though your setup will most likely work,
    a more Kotlin-ish solution would be:

    fun howOld(s: String): Int {
            return s[0].digitToInt()
        }
    

    I'd also leave out the class for the solution setup and just take the function.

    The test can also easily be written in a loop.

    @Test
        internal fun testHowOld() {
            for (i in 1..9) {
                assertEquals(i, howOld("$i years old"))
            }
        }
    

    Let me know what you think :)

  • Custom User Avatar
    • malandr
    • commented on ""Are arrow functions odd?" Java Translation"
    • 3 years ago

    @acraileanu, I changed it so that streams lambdas are used. Please check if it is OK.
    Thanks!

  • Custom User Avatar
    • acraileanu
    • commented on ""Are arrow functions odd?" Java Translation"
    • 3 years ago

    I wonder if we could use the lambda operator in the solution to convvey the "arrow"-ness? .filter(x -> x % 2 == 0)

  • Custom User Avatar
    • malandr
    • created a suggestion for "Are arrow functions odd?" kata
    • 3 years ago

    Hello,

    Could you please check and approve the Java Translation (https://www.codewars.com/kumite/62124fda1d5475001661ee49?sel=62124fda1d5475001661ee49) of the kata.

    Thanks

  • Custom User Avatar
    • malandr
    • commented on ""Drink about" Java Translation"
    • 3 years ago

    Hello All,

    I can see that the method names are now OK and tests seem to be fine.

    Can this kata be approved?

    Thanks

  • Custom User Avatar
    • malandr
    • commented on "Check the exam" kata
    • 5 years ago

    Java translation added. Please review and approve it.

  • Custom User Avatar
    • malandr
    • commented on "Parse nice int from char problem" kata
    • 5 years ago

    Hello! Kotlin translation added to the Kata. Could you please review it and approve :)

  • Custom User Avatar
    • malandr
    • commented on ""Parse nice int from char problem" Kotlin Translation"
    • 5 years ago

    Hello! Kotlin translation added to the Kata.

  • Custom User Avatar
    • JohanWiltink
    • commented on "Fastest Way to Travel to a City" kata
    • 5 years ago

    Rounding intermediate values is ++UnGood. Don't do it. Comparing da * vb to db * va is a perfectly good way to compare intermediate values without introducing floating point representation inaccuracy ( if it introduces overflow, get bigger datatypes ). But distances and speeds should not be modelled as integers anyway.

    Not raising as an Issue because this will be retired anyway.

  • Custom User Avatar
    • FArekkusu
    • commented on "Fastest Way to Travel to a City" kata
    • 5 years ago

    I can see that for Groovy/Kotlin languages, as an example, there are no such Katas, maybe what you say is more applciable to JS

    Because nobody translates those katas to Groovy/Kotlin, not because they were "authored for a specific language".

    I hope it can serve good for Codewars community

    Duplicates and low-effort katas certainly don't add any value to CW. If you don't unpublish this kata, it will be retired due to low satisfaction rating anyway.

  • Custom User Avatar
    • malandr
    • resolved an issue on "Fastest Way to Travel to a City" kata
    • 5 years ago

    @ejini战神, @XRFXLP
    Added sample and random tests. Please check if now it is OK.
    Thank you for the help!

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

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...