Algorithms 101: Level Patio in JavaScript

Noob v. Algorithms #19, improving runtime by operating on arrays in place

Joan Indiana Lyness
Nov 6 · 5 min read
lumpy patio — photo from CharlestonCrafted

Long ago, my husband and I hand-laid a brick patio in our backyard. (Yes, we put in a by-the-book base of gravel, sand, weed-blocking material, you name it). Over the years, some areas have sunk. If we wanted to redo it, we’d have to take off the bricks and level the…

Keep the story going. Sign up for an extra free read.

Joan Indiana Lyness

Written by

Full-stack developer, Ruby, Rails, JavaScript, i love! React. My portfolio: https://joan-indiana-lyness.com/projects

JavaScript in Plain English

Learn the web's most important programming language.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade