DEV Community

Discussion on: Coding Puzzles: Week of 4/8

Collapse
 
jellebekker profile image
Jelle Bekker

Okay, I couldn't help myself:

using System;
using System.Linq;

public class Kata
{
  public static long StairsIn20(int[][] stairs)
  {
    return stairs.SelectMany(x => x).Sum() * 20;
  }
}