Skip to content

Instantly share code, notes, and snippets.

View wvmitchell's full-sized avatar
🔥
Warming up the skillz

Will Mitchell wvmitchell

🔥
Warming up the skillz
View GitHub Profile
// As I was considering how to solve the problem, I saw two main paths forward. Either a recursive solution,
// or an iterative solution. The recursive solution was more obvious to me, so that's where I stared. Looking
// at the pyramid, what I saw was that the "longest slide down" from any point was going to be sum of that
// element, plus the "longest slide down" from the max of the left or right options. Visually:
// The pyramid:
7
4 8
6 9 3
import React, { Component } from 'react'
import { connect } from 'react-redux'
import uuid from 'uuid/v1'
class AddTodoForm extends Component {
constructor(props) {
super(props)
this.state = { text: '' }
}
@wvmitchell
wvmitchell / .eslintrc
Created October 5, 2018 17:48 — forked from christielynam/.eslintrc
Mod 3 ESList
{
"parser": "babel-eslint",
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],
"plugins": [
"react"
],
"env": {