Practicing TypeScript for my upcoming internship. And I figured out how to add code highlighting!
function stairsIn20(stairs : number[][]) : number { let totalStairs : number = 0; for(let day of stairs) { totalStairs += day.reduce((total, num) => total + num); } return totalStairs * 20; }
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Practicing TypeScript for my upcoming internship. And I figured out how to add code highlighting!