LeetCode Question · Sep 2022 · Los Angeles

Amazon SDE2 | OA | max Frequency deviation of charaters in string

1 upvote 492 views 1 reply

Question Details

Given a string with lower case albhabets, find a contiguous substring for which diff between max occurance character and min occurance charcter is maximum. Sample 1: Input: bbacccababc output: 2 Explanation: output can be...

Full Details

🔒

Unlock full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

Strings