• 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
osleonard Avatar
Name:Akinmolayan Olushola
Clan:CodeMobile
Member Since:Oct 2013
Last Seen:Jan 2025
Profiles:
Following:1
Followers:2
Allies:1
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (20)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • Chrono79
    • resolved an issue on "Number of trailing zeros of N!" kata
    • 5 years ago

    No, 14! == 87178291200‬ there are two trailing zeros there.

  • Custom User Avatar
    • osleonard
    • created an issue for "Number of trailing zeros of N!" kata
    • 5 years ago

    I believe for scala

    should be assert(Solution.zeros(14) == 1) not assert(Solution.zeros(14) == 2)

  • Custom User Avatar
    • sitetester
    • commented on "Multiples of 3 or 5" kata
    • 5 years ago

    Okay, that was indeed overflow issue. My buffer was initialized as Int. Thanks for quick response!

  • Custom User Avatar
    • B1ts
    • commented on "Multiples of 3 or 5" kata
    • 5 years ago

    @sitetester: I already gave you an answer. Ask yourself, why are you returning a negative number? (what makes it happen and how can you avoid it?)

    There's 276 scala completions, so it's not an issue with kata itself.

  • Custom User Avatar
    • sitetester
    • commented on "Multiples of 3 or 5" kata
    • 5 years ago

    Same issue -1961650628 did not equal 2333316668 for scala

  • Custom User Avatar
    • osleonard
    • commented on "Multiples of 3 or 5" kata
    • 7 years ago

    ooh well I had fixed that a while back.. :)

  • Custom User Avatar
    • Voile
    • commented on "Multiples of 3 or 5" kata
    • 7 years ago

    That's not the input, that's your output. So it's you who generated a negative number out of positive numbers ;-)

    (Also, as you know, you can always see the input by printing it out.)

  • Custom User Avatar
    • emgordon154
    • commented on "Multiples of 3 or 5" kata
    • 7 years ago

    Negative integers aren't natural numbers by the generally-accepted mathematical definition.

  • Custom User Avatar
    • andymcwraith
    • commented on "Multiples of 3 or 5" kata
    • 7 years ago

    My mistake I thought negative integers were not natural numbers

  • Custom User Avatar
    • osleonard
    • commented on "Multiples of 3 or 5" kata
    • 7 years ago

    Well the kata didnt say negative natural numbers ?

  • Custom User Avatar
    • Voile
    • resolved an issue on "Multiples of 3 or 5" kata
    • 7 years ago

    Not an issue. You should figure out why yourself ;-)

  • Custom User Avatar
    • osleonard
    • created an issue for "Multiples of 3 or 5" kata
    • 7 years ago

    -1961650628 did not equal 2333316668 for scala

  • Custom User Avatar
    • osleonard
    • commented on ""String repeat" Scala Translation"
    • 7 years ago

    Translated kata to scala

  • Custom User Avatar
    • osleonard
    • commented on ""Reversed sequence " Scala Translation"
    • 7 years ago

    I have added random tests to approve same.

  • Custom User Avatar
    • osleonard
    • commented on "Bagels" kata
    • 8 years ago

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

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

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...