The Hurdle Race in Javascript

  • int k: the height the character can jump naturally
  • int height[n]: the heights of each hurdle
  • int: the minimum number of doses required, always 0 or more
  • 1 ≤ n,k ≤ 100
  • 1 ≤ height[i] ≤ 100

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Props! —  and how to pass props to components in React . (part_1)

Binary Search, Explained in 3 Minutes

How to Fix Vulnerable NPM Dependencies

A Simple Solution Explained

How to Add Stimulus.js to a Rails 6 Application

Code guidelines

Basic Routing App in Deno using Oak

React Native at Traveloka: Native UI Components

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Travis Lee

Travis Lee

More from Medium

CS 373 Spring 2022: Anthony Chhang Week 4

More About Mongoose

Animal II: 3D

It has been a while..