Showing 3 questions
Imagine hamsters lined up in a row! You need to place food buckets so every hamster gets fed, but buckets can't be next to each other or next to houses. Find the fewest buckets you need.
#1. Minimum Number of Food Buckets to Feed the Hamsters
You're planning a trip and need to buy tickets for specific travel days. Given the costs for 1-day, 7-day, and 30-day passes, determine the minimum total cost to cover all your travel days.
#2. Minimum Cost For Tickets
Simulate addition with base -2 using the given arrays representing two negabinary numbers. Return the result as a negabinary array, ensuring no leading zeros.
#3. Adding Two Negabinary Numbers