Skip to content

realSergiy/AscDec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AscDesc

Would you beat the O(n) performance of the Array.IndexOf to find a number in the array, provided that:

  • elements of the array are unique
  • elements are sorted so that first random length portion of the array goes ascending, second goes descending

Example: 1 2 4 5 6 9 11 10 8 7 3

To try your code, replace the implementation of the Find method

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages