🔒 Locked
THETA( nlogn) algorithm
Advertisement
Original Post
Can anyone tell me how the following can be acheived Given an arbitrary sequence of numbers , an nlogn algorithm to find if some number in the sequence is repeated
If u sort the list it can be acheived in O(n) time .. . unsorted can u think of a O(nlgn) algorithm?
Trap gimme that hint
And no its no homework
And no its no homework
man i was ignoring the sorting from the analysis
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement