• 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
Ryanman Avatar
Name:Ryan McElroy
Clan:Hylaine
Member Since:Nov 2017
Last Seen:Dec 2024
Profiles:
Following:35
Followers:37
Allies:35
View Profile Badges
Ad
Educator, struggling to assess your students?
Assess your classroom or bootcamp with the world leading assessment platform, Qualified.Request your demo today!
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations
  • Replies (7)
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • backinblack
    • commented on "Dealing With Messy Data" sql solution
    • 4 years ago

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

  • Custom User Avatar
    • inunoriginal1
    • commented on "Dealing With Messy Data" sql solution
    • 5 years ago

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

  • Custom User Avatar
    • Jomopipi
    • commented on "Solving a puzzle by matching four corners" kata
    • 5 years ago

    .

  • Custom User Avatar
    • tonylicoding
    • commented on "Solving a puzzle by matching four corners" kata
    • 5 years ago

    If n is the number of pieces, yes as i was talking about like two nested for loops, it is either O(n) or O(n * m) where n, m is height and length.

    I also don't believe any solutions are O(n^2) if n is the number of pieces. By doing a simple nested loop with for p in pieces: twice, it times out.

  • Custom User Avatar
    • dlcoe
    • commented on "Solving a puzzle by matching four corners" csharp solution
    • 5 years ago

    Your solution is much easier to understand! Months later, this is true for me, even though I wrote my code...

  • Custom User Avatar
    • Blind4Basics
    • commented on "Solving a puzzle by matching four corners" kata
    • 5 years ago

    first things first: what is n exactly?

    @tony:

    here, n being the number of pieces, the best solution is O(n) (for the precise reasons Ryanman is explaning)

  • Custom User Avatar
    • tonylicoding
    • commented on "Solving a puzzle by matching four corners" kata
    • 5 years ago

    I think O(n^2) is the lowest possible time as you need to have a nested loop. Take your solution for example, it has a nested loop, so its O(n^2).

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

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...