Piramal Interview Experience for SDE-1 (1.5 Years Experienced)
Last Updated :
15 Mar, 2022
Round: 1
1. Given an integer array nums, find a contiguous non-empty subarray within the array that has the largest product and return the product.
It is guaranteed that the answer will fit in a 32-bit integer.
A subarray is a contiguous subsequence of the array.
2. Given a binary tree, a target node in the binary tree, and an integer value k, print all the nodes that are at a distance k from the given target node. No parent pointers are available.
Share your thoughts in the comments
Please Login to comment...