Available question text
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".
Related questions
Continue with questions that share topics or the same question type.
- Array With Elements Not Equal to Average of Neighbors
Coding
- Asked LC medium problems. Problems were not difficult, even without preparation--all related to string manipulation or array manipulation.
Coding
- Customer Who Visited but Did Not Make Any Transactions
Coding · Database
- Customers Who Bought Products A and B but Not C
Coding
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 2704. To Be Or Not To Be
Interview date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source