Photo of Benjamin Clemente

Benjamin Clemente

Calisthenics : Treasurer

Peanut butter power bars recipe:

Ingredients (Makes ~12 bars):

  • 1 cup creamy peanut butter
  • ½ cup honey
  • 3 cups rolled oats
  • ¼ cup chia seeds
  • ½ cup dark chocolate chips
  • 1 tsp vanilla extract
  • Pinch of salt

Instructions:

  1. Mix peanut butter and honey in a bowl until smooth. Microwave for 30 seconds if needed to soften.
  2. Stir in vanilla extract and salt.
  3. Add oats and chia seeds. Mix until it forms a thick, sticky dough.
  4. Fold in chocolate chips for that extra "treasurer’s treat" vibe.
  5. Press mixture into a parchment-lined 8x8-inch pan.
  6. Chill in the fridge for 1 hour, then cut into bars.
  7. Serve at our next workout session to power our gains and my campaign!

1488. Avoid Flood in The City:

---------------------------------------------------------------------------------------

class Solution:
def avoidFlood(self, rains: List[int]) -> List[int]:
n = len(rains)
next_day = [-1] * n
next_rain_day = {}

for i in range(n - 1, -1, -1):
x = rains[i]
if x > 0:
if x in next_rain_day:
next_day[i] = next_rain_day[x]
next_rain_day[x] = i

heap = []
full = set()
res = []
for i, x in enumerate(rains):
if x > 0:
if x in full:
return []
else:
full.add(x)
res.append(-1)
if next_day[i] != -1:
heapq.heappush(heap, (next_day[i], x))
elif heap and heap[0][1] in full:
_, lake = heapq.heappop(heap)
full.remove(lake)
res.append(lake)
else:
res.append(1)

return res

---------------------------------------------------------------------------------------

P.S. I'll handle the finances well.