Skip to content
This repository was archived by the owner on Sep 20, 2023. It is now read-only.

update problem 0004 with required time complexity#62

Open
jameshwc wants to merge 2021 commits intoaQuaYi:masterfrom
jameshwc:master
Open

update problem 0004 with required time complexity#62
jameshwc wants to merge 2021 commits intoaQuaYi:masterfrom
jameshwc:master

Conversation

@jameshwc
Copy link

@jameshwc jameshwc commented Jan 27, 2020

The problem of "4. Median of two sorted arrays" is requiring O(log(m+n)). Therefore, merging two arrays is not the best solution as the time complexity is O(m+n).
Ironically, due to the big constant, the logarithmic solution is slower than the linear one in leetcode's testdata.

aQuaYi and others added 29 commits October 26, 2019 16:00
337 不能使用 prein2Tree 方法建立二叉树
Merge pull request wufenggirl#1 from aQuaYi/master
Fix issue 59: Failed passing 686. Repeated String Match
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants