Name - Practice - LeetCode Example:1 Input: Output: Example:2 Input: Output: Solution 1 Time - O() Space - O() Solution 2 Time - O() Space - O()