Second Largest Element, Matrix Path, and Subsequence Sum
Filed under Myntra
The question
Find the second largest element in an array using heap sort, find the minimum path sum from top-left to the bottom level of an n*n matrix moving only down or diagonally right, find the maximum sum path between any two leaf nodes in a binary tree, and find if a subsequence sums to 'k' in an unsorted array in O(n) time.
No write-up yet. Related questions below have one.
Related Myntra questions
Collected from public candidate posts and coding forums. Updated Nov 2026.