LeetCode
Question
·
May 2020
·
Los Angeles
Facebook | Min number of operation needed to sort a sequence of numbers
61 upvotes
22,911 views
84 replies
Question Details
This question is from Facebook recruiting portal. Given an integer N, and a permutation, P of the integers from 1 to N, denoted as (a_1, a_2, ..., a_N), rearrange the elements...
Full Details
🔒
Unlock full leaked content
Full insider details, leaked discussions, and candidate experiences.
Get Premium →Topics
Sorting
Dynamic Programming
Sql
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