← Zomato questions
CodingReported in a candidate post, Jul 2025

Count sorted arrays obtainable by removing one element

Filed under Zomato

Given an array, remove exactly one element and count how many distinct non-decreasing (sorted) arrays can result. Two removals that produce the same array count once.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Zomato questions

Collected from public candidate posts and coding forums. Updated Nov 2026.