Skip to content

diameterDivision#12

Open
Agamya-Yadav wants to merge 1 commit intomainfrom
agamya_yadav-DiameterDivision
Open

diameterDivision#12
Agamya-Yadav wants to merge 1 commit intomainfrom
agamya_yadav-DiameterDivision

Conversation

@Agamya-Yadav
Copy link

All AC

first found D(k) for all k, such that D(k) <= root(nlogn)

this way we get D(k) for k = O(n/root(nlogn))

now the D(k) for remaining k, is calculated using binary search,

if(K(mid) <= k) D(k) <= mid
else D(k) > mid

All AC

first found D(k) for all k, such that D(k) <= root(nlogn)

this way we get D(k) for k = O(n/root(nlogn))

now the D(k) for remaining k, is calculated using binary search,

if(K(mid) <= k) D(k) <= mid
else D(k) > mid
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.

1 participant