Skip to content

Write exercises

Submit APL code for the following exercises. Your submissions are graded using TMC.

Make sure to log in to be able to submit your work!

Remember, you can test out ideas and develop you solution at TryAPL before submitting it here.

You can submit as many solutions as you like. If you submit a correct solution at least once, you will receive points on the TMC server and be able to see the model solution.

If the write problem is red, it is unsolved. If it it green, you have solved it and received points for it on the server.


Write problem 4

Write a function to delay all flights on the first of december by 5 minutes. You can assume that all the times listed end with '30' or '00'.

      flights
┌─────────┬─────────┬───────────┬──────────┬─────┐
Jari N.  Helsinki Tallinn    2024-12-0108:00
├─────────┼─────────┼───────────┼──────────┼─────┤
Erik O.  StockholmGothenburg 2024-12-0114:00
├─────────┼─────────┼───────────┼──────────┼─────┤
Michel A.London   Los Angeles2024-12-0311:30
└─────────┴─────────┴───────────┴──────────┴─────┘
      delay flights
┌─────────┬─────────┬───────────┬──────────┬─────┐
Jari N.  Helsinki Tallinn    2024-12-0108:05
├─────────┼─────────┼───────────┼──────────┼─────┤
Erik O.  StockholmGothenburg 2024-12-0114:05
├─────────┼─────────┼───────────┼──────────┼─────┤
Michel A.London   Los Angeles2024-12-0311:30
└─────────┴─────────┴───────────┴──────────┴─────┘

Hint: You can use

delay←