• Sign Up
  • Kata
  • Kumite
  • Blog
  • Forum
  • Wiki
  • Leaders
  • Log In
  • Sign Up
Name:Unknown
Clan:Unknown
Member Since:Mar 2016
Last Seen:Mar 2021
Profiles:
Following:0
Followers:303
Allies:0
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (7487)
  • Replies
  • Authored
  • Needs Resolution
    • RealKenshiro
    • commented on "TV Remote" kata

    Nice kata and crystal clear explanations. Thanks!

    • crees
    • commented on "Detect Pangram" c solution

    Appears very short, but runs the string 52 times instead of the once that is necessary- this is inefficient on a string longer than 26 characters.

    • nuzyly
    • commented on "FIXME: Get Full Name" java solution

    It's good coding practice to restrict mutability. As the instance variables are never changed we can make them immutable. Even better: Thus the whole class Dinglemouse becomes immutable - an instance of Dinglemouse can never be changed after initialization. As for the parameters it might not be mandatory to declare them final, but I made it a habit to declare all variables final by default, unless for the rare occasion where I really need a mutable variable. Also it is best avoided to change the value of parameters, so declaring them final makes this more explicit.

    • beginerbeginer
    • commented on "FIXME: Get Full Name" java solution

    Excuse me. why use final in this case?

    • RealKenshiro
    • commented on "The Pony Express" kata

    Original and creative kata. Thanks!!

    • dinglemouse
    • commented on "Line Safari - Is that a line?" kata

    @reggaeguitar

    In the fifth good example you can turn left or right when you get to the first cross, how is that not ambiguous?

    Yes. What you say is correct when going from LHS 'X' to the RHS 'X'. The line is ambiguous in that direction. But it is not ambigous traversing the line in the other direction (RHS to LHS).

    So the line is valid. Because of the rule "Sometimes a line may be valid in one direction but not the other. Such a line is still considered valid."

    • reggaeguitar
    • commented on "Line Safari - Is that a line?" kata

    I still don't understand what exactly you mean by "ambiguous" then. In the fifth good example you can turn left or right when you get to the first cross, how is that not ambiguous?

    • dinglemouse
    • commented on "Line Safari - Is that a line?" kata

    @reggaeguitar. Does it matter?

    If it is false (because ambiguous) or false (because doesn't use every character) then either way it is false, right?

    • Lydia_97
    • commented on "Traffic Lights - one car" kata

    it's NOT 6 kyu kata....

    • reggaeguitar
    • commented on "Line Safari - Is that a line?" kata

    You say the first it false because it's ambiguous because you can go the long way or the short way but the short way does not satisfy the rule "Every line "character" found in the grid must be part of the line. If extras are found then the line is not valid." Am I missing something here? This one should be true based on my understanding

    • Kozuki D Leon
    • commented on "FIXME: Replace all dots" kata

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

    • reggaeguitar
    • commented on "Line Safari - Is that a line?" kata

    Would be nice if the C# tests used a char[][] as an argument so I didn't have to reimplement Preloaded.MakeGrid. Other than that awesome kata!

    • SolitudeRain
    • commented on "The Hunger Games - Zoo Disaster!" kata

    at least, got good practice ^_^!

    • iwillcodeyouhard
    • commented on "Two fighters, one winner." java solution

    @dinglemouse it is really nice solution to this Kata. I've come up with 70 lines of code comparing to yours 10

    • vgusser
    • commented on "Dude, my computer cannot count!" java solution

    This is incorrect synchornization.

    totalVisits also must be synchronized on same monitor that visit method, also this rule must be applied to visitsBy method

  • Loading more items...
  • © 2021 Codewars
  • About
  • API
  • Blog
  • Privacy
  • Terms
  • Contact
  • powered by

Confirm

  • Cancel
  • Confirm