Leetcode 2704. To Be Or Not To Be
Implement expect(val) that returns an object with two methods: toBe(x) which returns true if val === x or throws "Not Equal", and notToBe(x) which returns true if val !== x or throws "Equal".
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
0
Hello Interview Premium
Your account is free and you can post anonymously if you choose.