This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
2
Thinking of doing a Binary Search.. should I use sort() first ?
Post Body
So I need to filter thru a list of names but the data Iām getting is random. I want to do a Binary search, but I know you should only do this for ordered alphabetical data. Is it suffice to sort my data from a-z using sort() first and then doing a Binary search algorithm based on that..or would that defeat the purpose and still basically slow down my function?
Author
Account Strength
90%
Account Age
4 years
Verified Email
Yes
Verified Flair
No
Total Karma
2,212
Link Karma
1,288
Comment Karma
907
Profile updated: 1 week ago
Posts updated: 2 months ago
Subreddit
Post Details
We try to extract some basic information from the post title. This is not
always successful or accurate, please use your best judgement and compare
these values to the post title and body for confirmation.
- Posted
- 2 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/learnjavasc...