I agree with Dhyanesh. This "counting" sort routine prescribed by Adak fails when the numbers can be random. Dhyanesh, I searched for "element uniqueness" and that problem is more generic. It says to find if all the numbers are unique. But in my problem it is known that exactly one number is duplicated (and exactly once). So I am still hoping for a better solution than O(n log(n) ).
- [algogeeks] Finding duplicate pramod
- [algogeeks] Re: Finding duplicate adak
- [algogeeks] Re: Finding duplicate pramod
- [algogeeks] Re: Finding duplicate Dhyanesh
- [algogeeks] Re: Finding duplicate adak
- [algogeeks] Re: Finding duplicate Dhyanesh
- [algogeeks] Re: Finding dupl... pramod
- [algogeeks] Re: Finding ... adak
- [algogeeks] Re: Finding ... Dhyanesh
- [algogeeks] Re: Find... adak
- [algogeeks] Re: Find... Dhyanesh
- [algogeeks] Re: Find... adak
- [algogeeks] Re: Find... mathmoi
- [algogeeks] Re: Find... Dhyanesh
- [algogeeks] Re: Find... Vijay Venkat Raghavan N
- [algogeeks] Re: Find... varadha rajan
- [algogeeks] Re: Find... pramod