Hi Leetcoders,
I recently interviewed at Amazon for the FTC role and wanted to share my experience.
Round 1:
https://leetcode.com/problems/backspace-string-compare/description/
I quickly implemented the brute-force approach within 5 minutes using stack and dry run on given 3 test cases and explained exact time and space complexity. Then he asked me to optimize it and then worked on optimizing it using two pointers. However, I struggled with the optimization and ended up with a solution that only passed some test cases.
Round 2:
I couldn't find the exact problem on LeetCode, but the question was as follows:
Problem Statement:
You are given a dynamic 2D array with n rows, where the number of columns in each row may vary. The goal is to select exactly one element from each row to maximize the sum of selected elements.
However, there are movement constraints:
If you pick an element from column index j in the current row, then in the next row, you can only pick from:
- Directly below
- Diagonally left
- Diagonally right
Find the maximum possible sum that can be obtained while following these constraints.
I solved this problem using recursion + memoization, but I made a small mistake in my code and also in my time complexity analysis while explaining my approach.
Based on my performance, do you think I have a chance of making it to the final behavioral round?
Let me know your thoughts!
Thanks! 🚀


