HacktoberFestContribute
HacktoberFestContribute copied to clipboard
Create peak-finding algorithm for both 1D and 2D arrays
This code efficiently finds peaks in both 1D and 2D arrays using a divide-and-conquer approach, enhancing performance compared to a naive solution. It also robustly handles user input, ensuring the program can handle various input scenarios gracefully.