Grand temple(greedy)


whats the error in this code?

hello @tishya_goyal
ur program is using too much memory because u have declared two big size array (x and y).

declare ur x and y array as follows.
image