1
1
mirror of https://github.com/theoludwig/programming-challenges.git synced 2024-07-18 02:20:12 +02:00
programming-challenges/challenges/inventory-update
2020-09-12 22:15:21 +00:00
..
solutions docs: fix typo 'at' should be 'on' 2020-09-12 22:15:21 +00:00
input-output.json Add "inventory-update" challenge 2020-07-08 17:17:03 +02:00
README.md docs: fix typo 'at' should be 'on' 2020-09-12 22:15:21 +00:00

inventory-update

Created by @Divlo on 8 July 2020.

Instructions :

Compare and update the inventory stored in a 2D array against a second 2D array of a fresh delivery. Update the current existing inventory item quantities (in array1). If an item cannot be found, add the new item and quantity into the inventory array. The returned inventory array should be in alphabetical order by item.

Examples :

See the input-output.json file for examples of input/output.