• Sign Up
  • Kata
  • Kumite
  • Blog
  • Forum
  • Wiki
  • Leaders
  • Log In
  • Sign Up
Name:Milad Vafaeifard
Clan:signcoders
Skills:typescript, javascript, c, c++, nodejs, html 5, css 3, unix, java
Member Since:Sep 2014
Last Seen:Jul 2020
Profiles:
Following:0
Followers:0
Allies:0
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (32)
  • Replies
  • Authored
  • Needs Resolution
    • rowcased
    • commented on "Find the next perfect square!" javascript solution

    ternary operator

    • slawa963
    • commented on "Find the next perfect square!" javascript solution

    I'm no idea what means ":" and "?" in "return" . How do I google this?

    • andrewbraun
    • commented on "Find the next perfect square!" javascript solution

    Never thought of using the modulo operator that way! Excellent.

    • yazelee89
    • commented on "Find the next perfect square!" javascript solution

    GG bro.. I can imagine the struggle lol

    • whatiscode
    • commented on "Find the next perfect square!" javascript solution

    sorry man...trying to get used to the platform

    • Chrono79
    • commented on "Find the next perfect square!" javascript solution

    Use spoiler flag next time, please.

    • whatiscode
    • commented on "Find the next perfect square!" javascript solution

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

    • Athenaum
    • commented on "Find the next perfect square!" javascript solution

    How could i be so stupid ? ......

    • matheusasdev
    • commented on "Find the next perfect square!" javascript solution

    Once I heard that division operation is very "expensive" (programmatically). Isn't better store the division result in a variable to avoid divide twice?

    • dagolinuxoid
    • commented on "Largest Elements" javascript solution

    one thing that can be improved: using [...xs] instead of xs.

    • g04-ukyo
    • commented on "Find the next perfect square!" javascript solution

    yeah , that's more clearly than "%1? -1"

    • nick3499
    • commented on "Find the next perfect square!" javascript solution

    Option: define a var for Math.sqrt(sq) to avoid the extra calc. You are calculating Math.sqrt(sq) twice.
    The next comment already stated that... woops

    • bozeman42
    • commented on "Find the next perfect square!" javascript solution

    an integer returns 0 which is evaluated as false.

    • Voile
    • commented on "Simple Fun #64: Almost Increasing Sequence" kata

    The test case is correct though?

    [1, 2, 3, 4, 3, 6], not increasing
    
    remove element at index 4
    
    [1, 2, 3, 4, 6], now strictly increasing! Therefore true
    
    • milad_vafaeifard
    • created a suggestion for "Simple Fun #64: Almost Increasing Sequence" kata

    what about Test.assertEquals(almostIncreasingSequence([1, 2, 3, 4, 3, 6]), true) ? it will fail testing!

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

Confirm

  • Cancel
  • Confirm