Day 18 of June LeetCode Challenge

Input: citations = [0,1,3,5,6]
Output: 3
Explanation: [0,1,3,5,6] means the researcher has 5 papers in total and each of them had
received 0, 1, 3, 5, 6 citations respectively.
Since the researcher has 3 papers with at least 3 citations each and the remaining
two with no more than 3 citations each, her h-index is 3.
  • This is a follow up problem to H-Index, where citations is now guaranteed to be sorted in ascending order.
  • Could you solve it in logarithmic time complexity?

--

--

--

We never really grow up, we only learn how to act in public

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Identify Potential Churn Users for Sparkify

Default of Credit Card Clients Dataset: Classification & Evaluation

Data monetization is not about selling your data

Data Science for Ad Segments : Moving Beyond Look-Alike Modeling

How to become a business analyst?

APPLE INC-The Buffettology Workbook

Download In @!PDF An Introduction to Splines for U

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Aanchal Patial

Aanchal Patial

We never really grow up, we only learn how to act in public

More from Medium

The (Welcome) Death of the LeetCode Interview

Interview Experience OLA

5/4 Binary Search Tree

Leetcode 820. Short Encoding of Words