Backpack Heist
Code Solutions on GitHub โ
Backpack Heist
The notorious businessman, Alexander Blackheart, murdered a member of the tribe, Mr. Body, and hidden all the evidence in his luxurious mansion. The tribe rogue, named Shadow, was determined to bring Blackheart to justice and set out to steal the most valuable pieces of evidence. With a limited carrying capacity of only 12 pounds, Shadow had to choose wisely.
As Shadow entered the mansion, the hairs on the back of her neck stood up. She knew that time was of the essence and quickly set to work searching for the evidence. Shadow found the murder weapon, a heavy object weighing 7 pounds and having a value of 0.8. While searching through Blackheart’s study, Shadow stumbled upon a diary, weighing 4 pounds and having a value of 0.9. In the living room, Shadow discovered CCTV footage, weighing 5 pounds and having a value of 0.7.
Shadow continued her search and found blood-stained clothing and linens, weighing 6 pounds and having a value of 0.8. She also found a laptop, weighing 3 pounds and having a value of 0.6. As Shadow turned to leave, she heard a loud squawk and looked up to see a parrot perched on a nearby shelf. Shadow shrugged her shoulders, and moved on.
Shadow had to make a crucial decision. As she considered the items laying in front of her, the parrot suddenly squawked, “Tama! Aaaaaah!” Shadow was taken aback by the parrot’s sudden outburst and recognized the name Tama, one of the tribe council members. She also realized that the parrot had imitated the scream of Mr. Body. Very intriguing. Shadow realized the parrot was indeed evidence for the murder, and gave it a value of 0.6. The parrot weighed 2 lbs.
Which items should Shadow bring back with her? Justice for the tribe depends on you!
The items are:
- Weapon
- CCTV
- Clothing
- Laptop
- Parrot
For the solution, sort the items by weight (heaviest first) and concatenate the names of the items into one string.
Hints:
- While all the weight are given in pounds, it doesn’t matter for this riddle
Category | story |
---|---|
Coding Level | advanced |
Coding Ideas | increment, decrement, difference, optimization, search |
Coding Languages | Code Solutions on GitHub โ |
Story Genre | heist, murder, mystery |
Story Content Key Words | Heist, Knapsack, Backpack, Justice |
Story License | CC BY-NC-SA 4.0 International |
Parental Rating | 16+ Parental Guideance Necessary |
How To Quote Story | (Vwing, Versatile Techie, MD and Chat GPT 3, adapted by StoryCoder.dev, adapted by StoryCoder.dev under CC BY-NC-SA 4.0 International) |
Picture License | CC BY-NC-SA 4.0 International |
How to Quote Picture | (adapted by StoryCoder.dev under CC BY-NC-SA 4.0 International) |
Available Solutions | JavaScript |
Title | Backpack Heist |
Author | Vwing, Versatile Techie, MD and Chat GPT 3, adapted by StoryCoder.dev |
Tags | 16+, advanced, backpack, decrement, difference, heist, increment, javascript, justice, knapsack, murder, mystery, no-c, no-c#, no-c++, no-clojure, no-dart, no-erlang, no-go, no-haskell, no-nim, no-perl, no-prolog, no-python, no-ruby, no-rust, no-swift, no-typescript, no-zig, optimization, search, story |