Facebook Coding Problems

Practice Facebook's classic coding problems

275
Total Problems
55
Easy
175
Medium
42
Hard
Start Practicing

Master DSA Topics - January, 2026

Practice problems across 75+ categories

Facebook Coding Problems

Practice problems frequently asked at Facebook 275 problems | 55 Easy | 175 Medium | 42 Hard

# Problem Difficulty Topics
46 Count Houses in a Circular Street Easy
ArrayInteractive
47 Count Number of Nice Subarrays Medium
ArrayHash TableMath
48 Count Palindromic Subsequences Hard
StringDynamic Programming
49 Count Vowels Permutation Hard
Dynamic Programming
50 Cousins in Binary Tree Easy
TreeDepth-First SearchBreadth-First Search
51 Curry Medium
JavaScript
52 Decrease Elements To Make Array Zigzag Medium
ArrayGreedy
53 Delete Columns to Make Sorted II Medium
ArrayStringGreedy
54 Delete N Nodes After M Nodes of a Linked List Easy
Linked List
55 Delete Nodes And Return Forest Medium
ArrayHash TableTree
56 Determine if String Halves Are Alike Easy
StringCounting
57 Diagonal Traverse II Medium
ArraySortingHeap (Priority Queue)
58 Distribute Candies to People Easy
MathSimulation
59 Divide Array in Sets of K Consecutive Numbers Medium
ArrayHash TableGreedy
60 Divide Chocolate Hard
ArrayBinary Search
Showing 46-60 of 275
1 2 3 4 5 6 ... 19

Tutorials Library

Master any technology with our largest free online Library. Browse through 500+ tutorials across 10+ categories.

Python

Python Tutorial

Java

Java Tutorial

JavaScript

JavaScript

C++

C++ Tutorial

C#

C# Tutorial

Go

Go Tutorial

Rust

Rust Tutorial

TypeScript

TypeScript

Swift

Swift Tutorial

Kotlin

Kotlin Tutorial

Ruby

Ruby Tutorial

PHP

PHP Tutorial

C

C Tutorial

Scala

Scala Tutorial

Perl

Perl Tutorial

R

R Tutorial

Dart

Dart Tutorial

Lua

Lua Tutorial

MATLAB

MATLAB

Haskell

Haskell

Developer Toolbox

Powerful online tools to boost your productivity

public class MyFirstJavaProgram { Edit & Run

   /* This is my first java program.
    * This will print 'Hello, World!' as the output
    */

   public static void main(String []args) {
      System.out.println("Hello, World!"); // prints
   }
}

Start Coding in Seconds

Coding Ground For Developers

Code, Edit, Run and Share

Ignite your coding potential on Coding Ground - an immersive online platform for hands-on learning, collaboration, and skill development.