C lists and maps
Work with ordered lists and key-value lookups. Follow a pickup roster, change a booking, or combine stock counts from two deliveries.
Lists · build and edit
- Append to a bounded arrayAdd the last student to the bus register
- Array removal with memmoveTake a cancelled item off a packing list
- Compact an array in placeClear empty stock bins from the pick list
- Replace an array entryCorrect the second stop on a shuttle route
Lists · positions and ranges
- Array indexing and element countRead the second name on the pickup roster
- Array range with start and lengthSelect two orders for the packing bench
- Reverse array traversalRead a receipt history newest first
Maps · look up and assign
- First assignment in a bounded seat registerKeep the first reservation for a seat
- Key-value records and strcmpUpdate the count for a shelf label
- Lookup with a fallback countShow a balance for an item never received
- Search records by keyFind a parcel whose driver is still unassigned