LeetCode
Question
·
Feb 2022
Facebook | screening | find pairs a[i] + b[j] = a[j] + b[i], i >= j
-1 upvotes
502 views
3 replies
Question Details
How would you solve this without brute force? Find the number of pairs: a[i] + b[j] = a[j] + b[i], i >= j a = []int{25,0} b = []int{0,25} Result = 3
Full Details
🔒
Unlock full leaked content
Full insider details, leaked discussions, and candidate experiences.
Get Premium →Topics
Coding
More from Meta
Reddit
Leetcode is cooked in 2026 and we don't hire people who only grind leetcode.
Reddit
Returning to SWE work after 3 years of cancer treatment
Reddit
2026 New Grad Recap
Reddit
Most likely failed meta phone screen
Reddit
Targeting OpenAI SWE Roles? Insights on what to expect from recent system design loops