Jeremie Fraeys
May 9th, 2017
One of the merchants was facing a problem keeping up with orders for cookies. The merchant needs help to sort and organize cookie orders in a way that will help them to plan their production in order to fulfill the orders. The data was acquired from a JSON file provided by Shopify.
Solution
Sorting algorithm
This is a mini project for an application to Shopify (Internship fall 2017).
The requirements were:
- Read all orders from the paginated API.
- Any order without cookies can be fulfilled.
- Prioritize fulfilling orders with the highest amount of cookies.
- If orders have the same amount of cookies, prioritize the order with the lowest ID.
- If an order has an amount of cookies bigger than the remaining cookies, skip the order.
The source file is in the .zip folder as well as on Github at https://github.com/jfraeys/shopify_cookies.git
© Jeremie Fraeys
Licensed under MIT License