• 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
coder334 Avatar
Name:Unknown
Clan:Unknown
Member Since:Jul 2019
Last Seen:Aug 2021
Profiles:
    Following:1
    Followers:2
    Allies:1
    View Profile Badges
    • Stats
    • Kata
    • Collections
    • Kumite
    • Social
    • Discourse
    • Conversations
    • Replies (8)
    • Authored
    • Needs Resolution
    • Custom User Avatar
      • DN20
      • commented on "Sum of pairs" kata
      • 4 years ago

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

    • Custom User Avatar
      • sadegh-moayedizadeh
      • commented on "Sum of pairs" kata
      • 4 years ago

      it is not O(n). (item-s in ints[i+1:]) also loops underneath

    • Custom User Avatar
      • sadegh-moayedizadeh
      • commented on "Sum of pairs" kata
      • 4 years ago

      same problem

    • Custom User Avatar
      • Gaminguitarist
      • commented on "Find the odd int" kata
      • 4 years ago

      How so? I just did it with 4 lines.

    • Custom User Avatar
      • pankfish
      • commented on "Sum of pairs" kata
      • 4 years ago

      That's O(n^2). You are looping through to access each number, then you are looping through the entire list at each number to check if it adds up to the target.

    • Custom User Avatar
      • rge123
      • commented on "Consecutive Differences" kata
      • 4 years ago

      You shouldn't reuse an old kata.
      Make a new one from scratch - that way you don't start at 0% from 2 ;)

    • Custom User Avatar
      • natan
      • commented on "Sum of pairs" kata
      • 4 years ago

      membership testing for list is O(n) so what you describe would be O(n*n)
      maybe that's obvious and you're not doing that.

    • Custom User Avatar
      • helloworld_
      • commented on "Find the odd int" kata
      • 4 years ago

      i completely agree!

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

    Confirm

    • Cancel
    • Confirm

    Collect: undefined

    Loading collection data...