Skip to content

Instantly share code, notes, and snippets.

View jakyle's full-sized avatar

James Jackson jakyle

View GitHub Profile
using System.CodeDom.Compiler;
using System.Collections.Generic;
using System.Collections;
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.Serialization;
public static int jumpingOnClouds(int[] c)
{
// Shortest route to get to the end
// 0 is safe, 1 is a hazard (avoid)
// each clound is numbered by it's index
// save players current location
// track jumps taken -- DOne, easy, get on my level
// number of next position
var jumpsTaken = 0;