1p3a Question · Feb 2026

Uber SDE-2 Online Assessment Interview Questions

Question Details

## Problem Statement You are given a permutation `p` of size `n`. For each prefix `p[1..k]` (where `1 ≤ k ≤ n`), determine whether it forms a valid permutation of integers from `1` to `k`. A prefix is

Full Details

🔒

Unlock full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

Strings