Skip to content
/ matrix2d Public

Search a rectangular, sorted (column-wise and row-wise) matrix.

License

Notifications You must be signed in to change notification settings

esote/matrix2d

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Search a rectangular, sorted (column-wise and row-wise) matrix.

Returns (Point{-1, -1}, false) if no key is found.

All code branches are covered by matrix2d_test.go.

Uses the algorithm described by Craig Gidney: http://twistedoakstudios.com/blog/Post5365_searching-a-sorted-matrix-faster

About

Search a rectangular, sorted (column-wise and row-wise) matrix.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages