LeetCode Question · Oct 2023

Microsoft Interview Question

4 upvotes 921 views 10 replies

Question Details

Given a sorted string "aaabbbccccccceeee" and a character, write a function to return the frequency of character. Time Complexity expected was O(logN) and Space complexity O(1). How to solve this?

Full Details

🔒

Unlock full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

Strings