https://leetcode.com/problems/contains-duplicate/ Approach Brute force take the first element and compare it to every other element that would be n operations to check whether the first number is duplicate or not. We have to do it for every number...

Markdown supported · ⌘↵ to post
No responses yet.