Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
It might not be the most efficient approach, it it is almost definitely not the Cop's code, but it works, and its 12 away. Note that while the Cop's code considers 0 as the first number (yielding 2), this code takes 1 as the first number.
It might not be the most efficient approach, it it is almost definitely not the Cop's code, but it works, and its 12 away. Note that while the Cop's code considers 0 as the first number (yielding 2), this code takes 1 as the first number.
It might not be the most efficient approach, it it is almost definitely not the Cop's code, but it works, and its 12 away. Note that while the Cop's code considers 0 as the first number (yielding 2), this code takes 1 as the first number.