0

Find the length of smallest subarray whose sum is a cube

You are given an integer array A having N integers.Find the length of smallest subarray whose sum is a cube. return -1 if no such subarray exist.

7th Mar 2022, 10:21 AM
Animesh Chincholikar
Animesh Chincholikar - avatar
1 Answer
+ 5
Okay, done! Thanks for the challenge. Edit: seeing from your rather demanding PM you didn’t get my attempt for discourse and activiation of your learning. Let me be a bit more blunt: This is not a place where you simply blurt your homework assignment and expect someone to solve it. At the very, very, very least you need to ask a (polite) question. But the correct way would be to - try it yourself first - run into a problem - post your question - post your work along with it Good luck.
7th Mar 2022, 10:42 AM
Brave Tea
Brave Tea - avatar