Hello,
I have followed the code as shown in the video solution for this problem. However, when running with test Input I receive ‘Segmentation Fault’. Could you help with what might be causing this issue?
Additionally, is there a location to access the code shown in the video (C++) ? The Editorial section lists an edited version of what was shown in the video.
Solution IDE Link: https://ide.codingblocks.com/s/383356