Expected Cash Flow Analysis
A financial analytics platform is developing a feature to help investors understand the expected cash flows from their bond investments. Create a query that provides insights into each investor's expected cash flows.
The output should list all investors with their total number of investments, the sum of expected cash flows, and the range of expected cash flows (th
Asked in: ZSCALER
Track Command Position
A network contains n nodes, where node 1 is the root node. The network structure is represented as a tree, with each node (except the root) having exactly one parent specified by the array par, where par[i] represents the parent of node i (1-based indexing).
Commands propagate through the network as follows: A node sends the command to its direct child nodes in ascendi
Asked in: ZSCALER
A class has students with various talents, each represented by an integer from 1 to talentsCount. You need to form teams for a quiz competition, where each team must have at least one member with each talent. Teams must be formed from consecutive students in the array. For each possible starting position, determine the minimum number of students needed to form a valid team. If it is not possible t
Asked in: ZS
1. Maximize the Revenue
There are n different types of items in a shop, where the number of items of type i is given by quantity[i]. The price of the items is determined dynamically, where the price of the ith item is equal to the remaining number of items of type i.
There are m customers in line, and each customer will buy exactly one item of any type. The shopkeeper aims to maximize revenu
Asked in: ZS