Solutions LTI Infinity Coding Challenge 2021
Problems and Code Serena and Flowers Serena has a garden with N flower pots arranged in a row Every morning she walks through the row and plucks flowers She targets to visit the first K pots in the row Find the number of different flowers that Serena would pluck on an angle walk through the k pots Input Specification: input1: N, number of flower pots in Serena's garden input2: K number of pots Serena visits one walk inputs: An array containing pot index P to represent each pot by unique numbers (1<=P<=1000). pots having the same flower will have the same pot index Output Specification: Your function should return the number of different flowers plucked by Serena Example 1: ...
Comments
Post a Comment
We need people who give us feedback and this is how we grow. Please do comment if you find something faulty, wrong , helpful, valuable in anyway. You can comment anonymously. Thanks for your contribution.