Showing 3 of 27 questions
Calculate all possible subsequence sums from a given array of numbers. Return the bitwise OR of all those sums.
#1. Bitwise OR of All Subsequence Sums
You are given a list of shops, each having some items with associated prices. Maximize your total spending by strategically buying one item from each shop, considering a spending coefficient that increases with each purchase.
#2. Maximum Spending After Buying Items
Imagine a long corridor with plants and seats. Find the number of ways to divide the corridor into sections, ensuring each section has exactly two plants.
#3. Number of Ways to Divide a Long Corridor
Page 1 of 1 · 27 total