Last occurrence in a sorted array - Tutorial
Blog
Discussion