Given a positive integer n, print the consecutive numbers whose sum is equal to n. For example, n = 20 Output: 2, 3, 4, 5, 6 (because 2+3+4+5+6+7 = 20) n = 29 Output: 14, 15 Solution: To see the video solution of this problem, see the below video, else continue reading: The brute force […]
Published on February 09, 2018 23:59