1p3a Question · Sep 2025

Amazon Online Assessment SDE-1 Valid Substrings Coding Problem

Question Details

Problem Statement Given a string $s$ consisting of characters 'a', 'b', 'c', and 'd', we need to calculate the total number of valid substrings. A substring is defined as valid if its characters c

Full Details

🔒

Unlock all Amazon 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 amazon interview for a swe role during the oa round reported in 2025.

It covers the following topics: Arrays, Hash Table, Strings .