• 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
jiaweitxng Avatar
Name:Jiawei Tang
Clan:Unknown
Member Since:Apr 2021
Last Seen:Jul 2021
Profiles:
Following:1
Followers:1
Allies:1
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (10)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • Lucas Ariel
    • commented on "Largest pair sum in array" java solution
    • 3 years ago

    The current solution upvote system slightly rewards shorter code over efficient code on many problems. I think this might change in the future if they decide to show the average runtime of each solution.

    +5Kyu kata check for efficiency more often as a requirement to pass the tests. On lower level kata, you can mostly expect short solutions that are far from being considered best practices.

    Other reason for writing shorter code is simply having a little bit of fun. I've done it myself.

  • Custom User Avatar
    • user3405198
    • commented on "Largest pair sum in array" java solution
    • 3 years ago

    So, why are people here focusing on less code lines instead of perfect run times? Sorting is not a reasonable solution if efficiency is required.

  • Custom User Avatar
    • blackkey
    • commented on "Largest pair sum in array" java solution
    • 4 years ago

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

  • Custom User Avatar
    • jiaweitxng
    • commented on "List Filtering" kata
    • 4 years ago

    .

  • Custom User Avatar
    • jiaweitxng
    • commented on "Moving Zeros To The End" kata
    • 4 years ago

    there is nothing wrong with the question; you can try using the filter function

  • Custom User Avatar
    • iamgood
    • commented on "Largest pair sum in array" java solution
    • 4 years ago

    Hi!
    Could you explain, what do you mean?
    Are there any examples?

  • Custom User Avatar
    • jiaweitxng
    • commented on "Sums of Parts" kata
    • 4 years ago

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

  • Custom User Avatar
    • jiaweitxng
    • commented on "Playing with digits" kata
    • 4 years ago

    ⠀⠀⠀⠀⠀⠀⠀⠀

  • Custom User Avatar
    • jiaweitxng
    • commented on "Playing with digits" kata
    • 4 years ago

    nice kata!

  • Custom User Avatar
    • jiaweitxng
    • commented on "Statistics for an Athletic Association" kata
    • 4 years ago

    the average is for the total amount of time; consider the h/m/s as total seconds

  • © 2025 Codewars
  • About
  • API
  • Blog
  • Privacy
  • Terms
  • Code of Conduct
  • Contact

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...