Skip to content

Instantly share code, notes, and snippets.

View spinningarrow's full-sized avatar

Sahil Bajaj spinningarrow

View GitHub Profile

Keybase proof

I hereby claim:

  • I am spinningarrow on github.
  • I am spinningarrow (https://keybase.io/spinningarrow) on keybase.
  • I have a public key ASC8RCm1lry7XLgylQrhEx2sy-suQys47ZnwBfgF-mn4_Ao

To claim this, I am signing this object:

@spinningarrow
spinningarrow / Caddyfile
Created June 19, 2019 14:55
Concourse cc.xml proxy
localhost:2015
log stdout
proxy / https://your.concourse.instance.com/ {
header_upstream Authorization "Bearer {$FLY_TOKEN}"
}

Number of people in the bus

There is a bus moving in the city, and it takes and drops some people in each bus stop.

You are provided with an array of "bus stops". Each "bus stop" is itself an array containing 2 items:

  1. the number of people who get on bus at that bus stop
  2. the number of people who get off the bus at that bus stop

For example, [2, 5] means that 2 people got on the bus, and 5 people got off the bus at that stop.