• 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
wontonst Avatar
Name:Roy Zheng
Clan:University of Southern California
Member Since:Nov 2013
Last Seen:Apr 2025
Profiles:
Following:181
Followers:179
Allies:179
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (64)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • viscoustorque
    • commented on "Palindrome Builder" kata
    • 3 months ago

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

  • Custom User Avatar
    • tobeannouncd
    • created a suggestion for "Palindrome Builder" kata
    • 6 months ago

    Haskell translation

  • Custom User Avatar
    • Robberttims
    • commented on "Best Stock Profit in Single Sale" kata
    • 7 months ago

    Did you solve it though? Also don't understand it

    EDIT: solved it. For future users, refer to the previous comment made in this discussion:

    It's not clear that the input represents a price timeline where the sale occurs sometime after the purchase, and not, say, a list of shops where you can trade freely.

  • Custom User Avatar
    • saudiGuy
    • created a suggestion for "Palindrome Builder" kata
    • 9 months ago

    python new test frameworks

  • Custom User Avatar
    • TheChampionofValor
    • commented on "Best Stock Profit in Single Sale" kata
    • 11 months ago

    Ok thanks, Mauro!

  • Custom User Avatar
    • kbç4
    • created a question for "Best Stock Profit in Single Sale" kata
    • 11 months ago

    I didn't understand how the first test is supposed to return 6 and the last, -1.

  • Custom User Avatar
    • mauro-1
    • commented on "Best Stock Profit in Single Sale" kata
    • 11 months ago

    $O(n^2)$ is too slow, the solution should be $O(n)$.

  • Custom User Avatar
    • TheChampionofValor
    • commented on "Best Stock Profit in Single Sale" kata
    • 11 months ago

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

  • Custom User Avatar
    • mauro-1
    • commented on "Best Stock Profit in Single Sale" kata
    • 11 months ago

    Fixed in python.

  • Custom User Avatar
    • mauro-1
    • commented on "Best Stock Profit in Single Sale" kata
    • 11 months ago

    Fixed in python.

    C: still an issue
    Ruby: ok

  • Custom User Avatar
    • zacharymathias
    • commented on "How good are you really?" python solution
    • 13 months ago

    The spoiler flag XD

  • Custom User Avatar
    • saudiGuy
    • created a suggestion for "Best Stock Profit in Single Sale" kata
    • 14 months ago

    Python: In the last 100 random tests, the expected output is always 100. Arrays could be modified to include something more useful.

  • Custom User Avatar
    • cistelsa
    • commented on "How good are you really?" python solution
    • 2 years ago

    The library is very nice but it's useless if you don't understand the exercise. How do you calculate the mean if you don't include yourself? Are you a student from another university?

  • Custom User Avatar
    • Savalio
    • commented on "How good are you really?" python solution
    • 3 years ago

    Thanks for teaching me new library

  • Custom User Avatar
    • macambira
    • commented on "Best Stock Profit in Single Sale" kata
    • 3 years ago

    C Translation

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

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...