Search
⌘K

Leetcode 2794. Create Object from Two Arrays

Given two arrays — one of keys and one of values — construct an object/dictionary that maps each keys[i] to values[i], paying attention to handling mismatched lengths or duplicate keys as specified.


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.