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

Stripe logo
Stripe
Jan 6, 2026
mediumSoftware EngineerTechnical ScreenCoding & Algorithms
18
0
Loading...