Minimize total factory cost with distance penalties

Read the full interview experience this question came from →

Quick Overview

This question evaluates dynamic programming and sequence optimization skills, focusing on modeling cumulative build costs with adjacency distance penalties and handling variants such as skipping a factory.

Minimize total factory cost with distance penalties

Company: Stripe

Role: Software Engineer

Category: Coding & Algorithms

Difficulty: medium

Interview Round: Technical Screen

Overview: This question evaluates dynamic programming and sequence optimization skills, focusing on modeling cumulative build costs with adjacency distance penalties and handling variants such as skipping a factory.

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

|Home/Coding & Algorithms/Stripe
Stripe logo
Stripe
Jan 6, 2026
mediumSoftware EngineerTechnical ScreenCoding & Algorithms
11
0
Loading...

Submit Your Answer to Earn 20XP

Sign in to leave a comment

Loading comments...