Week14_Lab_RiyadhMetro

Red

  • Alwrod
  • Salah Aldin
  • Alnzha
  • Hittin
  • Qwrtba
  • KSU
  • Almalaz
  • Diplomatic

Blue

  • Alakeek
  • Alyasmin
  • Salah Aldin
  • Rahmanea
  • Motamrat
  • Alolya
  • Almoroj

Green

  • Nmar
  • PNU
  • Salah Aldin
  • Solaymanea
  • Alamal
  • Tayba
  • Alhazem
  • Alzahra

NOTE: All 3 subway lines intersect at Salah Aldin but there are no other intersection points.

The function will be invoked using the following pattern of arguments: Start Line, Start Station, End Line, End Station

Here are some examples of how should be invoked.

stopsBetweenStations('Red','Alwrod', 'Red', 'Alwrod') // 0 stops
stopsBetweenStations('Red','Alwrod', 'Red', 'Diplomatic') // 7 stops
stopsBetweenStations('Red','Alwrod', 'Green', 'Alzahra') // 6 stops