APEX WEEK OF HORROR

7 Nights of Code

Practice Salesforce development through spine-chilling challenges that haunt your soul

1

Costume Candy Counter 🍬

10 points

Given a list of trick-or-treaters with their costumes and candy collected, find which Halloween costume collected the most candy across all wearers. Each entry includes the costume name and pieces of candy collected. Return the name of the costume with the highest total candy collection!

getTopCandyCostume(List<TrickOrTreater>) { return topCostume; }
2

πŸ‘» Who You Gonna Call? Equipment Checker!

30 points

You are building a Ghostbusters equipment checker! Given a ghost's name and your available equipment, you need to determine what additional equipment is required to safely capture that ghost.

public List<String> getMissingEquipment(String ghostName, List<String> availableEquipment){ }
3

πŸ‘» Ghostbusters: Team Equipment Planner

30 points

You're assembling a Ghostbusters team to handle multiple paranormal threats in one night! Given a list of ghost names that need to be captured, you need to determine the minimum set of equipment required to handle ALL of them efficiently.

public List<String> getTeamEquipment(List<String> ghostNames){ ... }
4

Nightmare on Elm Street: Freddy's Dream Cycle

20 points

You are given a list of integers representing sleep stages throughout the night, where each number represents the depth of sleep (1-5, with 5 being the deepest). Freddy Krueger appears in your nightmares under specific conditions.

public Boolean doesFreddyAppear(List<Integer> sleepStages){ ... }
5

Get Out: Sunken Place Memory Manager

50 points

Welcome to the Sunken Place, where memories fade into darkness. πŸ•³οΈπŸ§ 

public class Memory { ... }
6

The Texas Chain Saw Massacre: Gas Station Route Planner

30 points

You're driving through rural Texas in an old van, trying to reach safety. Your van is low on gas, and you need to carefully plan your stops at gas stations along the highway. Every moment countsβ€”Leatherface could be right behind you!

public Integer minimumStops(Integer destination, Integer tankCapacity, Integer currentFuel, List<Integer> gasStations){ ... }
7

Halloween: The Shape's Stalking Pattern

10 points

Throughout Haddonfield, residents have reported sightings of Michael Myers at various locations. As the town's sheriff, you need to determine if Michael is stalking a specific target by analyzing his movement pattern throughout the day.

public String findStalkingTarget(String sightings){ ... }
8

Halloween Night: Trick-or-Treat Route Optimizer

20 points

As an experienced trick-or-treater, you know that not all houses are created equal. Some give out king-size candy bars, while others are downright terrifying. You need to plan the perfect route to maximize your candy haul while staying within your comfort zone for scary encounters.

public class House { ... }