Calculate Sum and Product
Asked at Meta · Coding & Leetcode-style Questions · Difficulty: Easy
Implement a function that takes a list of integers and returns an array where the first element is the sum of all integers, and the second element is the product of all integers.
Loading the problem…
More Meta interview questions
- LLM conceptual questions
- Implement a Two-Hidden-Layer MLP with Backpropagation in NumPy
- Dot Product with Run-Length Encoded Vectors
- Count Lakes Wrapped by a Given Island
- Minimum Remove to Make Valid Parentheses
- LLM with Beam Search and Nucleus Sampling (Meta MSL)