Search
⌘K

Leetcode 2695. Array Wrapper

Implement an ArrayWrapper class that stores an integer array and supports operator overloading so that adding two instances returns the sum of all elements in both arrays, and calling String(instance) returns a bracketed comma-separated string representation like "[1,2,3]".


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.