LeetCode
Question
·
May 2019
·
Los Angeles
Facebook | Onsite | Spaced permutations
20 upvotes
8,038 views
13 replies
Question Details
Given an integer n, create an array such that each value is repeated twice. Example 1: Input: n = 3 Output: [1, 1, 2, 2, 3, 3] Example 2: Input: n = 4 Output: [1, 1,...
Full Details
🔒
Unlock full leaked content
Full insider details, leaked discussions, and candidate experiences.
Get Premium →Topics
Arrays
Backtracking
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