Count Good Meals at Robinhood

Medium32.5% acceptance

This problem has 87.5% frequency at Robinhood.

Problem Description

A **good meal** is a meal that contains **exactly two different food items** with a sum of deliciousness equal to a power of two. You can pick **any** two different foods to make a good meal. Given an array of integers `deliciousness` where `deliciousness[i]` is the deliciousness of the `i​​​​​​th...

Read full problem and hints

Topics

Also asked at 1 company


More Robinhood Questions

View all Robinhood questions