Open In App

Piramal Interview Experience for SDE-1 (1.5 Years Experienced)

Last Updated : 15 Mar, 2022
Improve
Improve
Like Article
Like
Save
Share
Report

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.


Like Article
Suggest improvement
Share your thoughts in the comments

Similar Reads