lets suppose i have a bimodal array
2 4 6 8 12 50 40 32 3 52 66 70 74 100 90 80 Here one peak is 50 and another peak is 100 .How to write algorithm for this ? I am able t