Check if given number is a Dodecahedral number
Given a number N, the task is to check if N is a dodecahedral Number – Dodecahedral Number belongs to a figurate number and represents it dodecahedron. The first few dodecahedral numbers are 1, 20, 84, 220, 455, 816, 1330 … Examples: Input: N = 20 Output: Yes Explanation: 20 is the second dodecahedral number Input: N =… Read More »
