← All questions
Coding
3-D Dynamic Programing (similar to the standard problem)
Asked at
Samsung
1Give yourself 5 minutes
2Answer out loud, not in your head
3Then compare with the answer below
0
Stuck? Show a way to structure it+
- 01Request the actual state variables, objective, transitions, and constraints.
- 02Name what each of three dimensions must encode before defining DP.
- 03Establish base cases and dependency direction.
- 04Check whether the cubic state space fits the constraints.
Reference answer
Then expect these follow-ups
What are the inputs and objective for this 3D-DP problem?
Tests: clarification
How can one dimension often be compressed?
Tests: DP optimization
Hiring now
Samsung has 360 open roles right now
landed applies to roles like these for you, on each company’s own site, with answers written for the role.
Get 5x interviews10 free auto-applies. No card.
EHS Software Engineer
12100 Samsung Blvd, Austin, TX, USA
Office & Compliance Manager – Maternity Leave Cover
Azrieli Building G, Herzliya, Israel
Estágio em Desenvolvimento de Software
Parque dos Resedas, Campinas, Brazil
Next question