Given a non-negative integer num, repeatedly add all its digits until the result has only one digit.
Given an array of citations (each citation is a non-negative integer) of a researcher, write a function to compute the researcher's h-index.
Given a sorted integer array without duplicates, return the summary of its ranges.
Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties: