Skip to content

Conversation

@tatsqui
Copy link

@tatsqui tatsqui commented Apr 22, 2019

No description provided.

# Time complexity: ?
# Space complexity: ?
# Time complexity: n*m or quadratic time complexity that is dependent on length of smaller array
# Space complexity: Up to On after sorting (in place is possible) where n is length of smaller array

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe space complexity is O(1) for quadratic time complexity/insertion sort.
Source 1: Comparison Sort
Source 2: Time Complexity

end
end
end
return result

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work on this algorithm. Your naming and intent are both very clear. 🦄 ✨

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants