We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
I was confused by the contest requirement.
When N = 7, the right answer is 36, which has #9 factors, however 66 has #8 factors, because 66 has less factors than 36, I ordered triangle numbers by their factor numbers and kept getting the wrong answer.
I am writing this in case someone has the same misunderstanding.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Project Euler #12: Highly divisible triangular number
You are viewing a single comment's thread. Return to all comments →
I was confused by the contest requirement. When N = 7, the right answer is 36, which has #9 factors, however 66 has #8 factors, because 66 has less factors than 36, I ordered triangle numbers by their factor numbers and kept getting the wrong answer.
I am writing this in case someone has the same misunderstanding.