Flatten Nested Objects and Lists into Full Leaf Paths

Read the full interview experience this question came from →

Quick Overview

Traverse nested maps and lists with a stack, include every parent key and list index, and return deterministically ordered paths to string leaves.

Flatten Nested Objects and Lists into Full Leaf Paths

Company: Salesforce

Role: Software Engineer

Category: Coding & Algorithms

Difficulty: medium

Interview Round: Onsite

Overview: Traverse nested maps and lists with a stack, include every parent key and list index, and return deterministically ordered paths to string leaves.

Read the full Salesforce Software Engineer interview experience this question came from

Salesforce logo
Salesforce
Sep 2, 2026
mediumSoftware EngineerOnsiteCoding & Algorithms
8
0
Loading...