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 all Microsoft questions

Full insider details, leaked discussions, and candidate experiences.

or every company, $100/year →

About This Question

This is a reported interview question from a microsoft interview for a swe role reported in 2023.

It covers the following topics: Strings .

Topics