Fundamentals
/
Memory Size of Types
⏸
00:00
↻
← Prev
Next →
▶
Question
Given an array length n and an element type ("bool", "int", "long", "float", "double"), return the total bytes the array occupies using bool=1, int=4, long=8, float=4, double=8.
▶
My Code
▶
Reference Solution