You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @sfdye , @hasangokdag has corrected precisely what you are saying in his commit. Look at his commit: ce3e678
But his PR is still open, please be patient and let the repo owners merge his PR.
Activity
[-]Mergesort best & average case O(n)?[/-]pandyamarut commentedon Sep 13, 2018
it's O(n log n ) only.
hasangokdag commentedon Sep 13, 2018
#342 I changed the readme and created a pull request
vishkothari96 commentedon Sep 18, 2018
It is O(n*log(n)) for best, average and worst case.
Where, n:size of the array under consideration.
sumitkumar22299 commentedon Sep 19, 2018
Yes! It should be O(n*log(n)) for every case i.e. best case, average case, worst case.
hasangokdag commentedon Sep 21, 2018
Are you pointing out that there should be a "" between n and log(n)?
like O(n log(n)) vs O(nlog(n))?
In readme file Merge, Quick and Shell is also using one space as multiplication instead of "*". Thats why I also used it that way in the PR.
sfdye commentedon Sep 22, 2018
@hasangokdag No. In the master, best & average are
O(n)which are simply incorrect and misleading.piyush01123 commentedon Sep 22, 2018
Hi @sfdye , @hasangokdag has corrected precisely what you are saying in his commit. Look at his commit: ce3e678
But his PR is still open, please be patient and let the repo owners merge his PR.
sfdye commentedon Sep 22, 2018
@piyush-kgp Yeah I am aware of the PR. It should get high priority as this simple typo could fail someone's interview.
piyush01123 commentedon Sep 22, 2018
Yes. you are right. Just noticed that this thread is 9 days old. Apologies.
merge sort average&worst case scenarios changed (#340)
AnshulMalik commentedon Sep 28, 2018
Thanks @hasangokdag
sfdye commentedon Sep 28, 2018
Finally this is merged. Cheers 👍