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.
You don't need Demlo numbers. Try using: sum, map, lambda, range and the ternary conditional operator x if cond else y altogether: map and lambda will save you from using an extra for keyword.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Triangle Quest 2
You are viewing a single comment's thread. Return to all comments →
You don't need Demlo numbers. Try using: sum, map, lambda, range and the ternary conditional operator x if cond else y altogether: map and lambda will save you from using an extra for keyword.