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.
Many indeed make a mistake here. A non decreasing series is the one where any a(i)>=a(j), for all i>j.
While on the other hand, if the series is said to be increasing then, it should strictly increase, which means a(i)>a(j), for all i>j.
(Here a(m) denotes the mth term of the series, and i,j,m belong to positive integers).
Thus, a series like 1,2,2,3,4,5,5,5,6,7,... must not be accounted as increasing but rather, non decreasing, as the terms never decrease but may remain the same.
I do not know how include LaTeX here in HackerRank, but I think you will get that at least.. Hope this helps!
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Project Euler #254: Sums of Digit Factorials
You are viewing a single comment's thread. Return to all comments →
Many indeed make a mistake here. A non decreasing series is the one where any a(i)>=a(j), for all i>j. While on the other hand, if the series is said to be increasing then, it should strictly increase, which means a(i)>a(j), for all i>j. (Here a(m) denotes the mth term of the series, and i,j,m belong to positive integers). Thus, a series like 1,2,2,3,4,5,5,5,6,7,... must not be accounted as increasing but rather, non decreasing, as the terms never decrease but may remain the same. I do not know how include LaTeX here in HackerRank, but I think you will get that at least.. Hope this helps!