Skip to content

alirezaudev-archive/neetcode-algorithms-for-beginners

Repository files navigation

ARRAYS

Difficulty Problem Solution
$${\color{green}Easy}$$ Remove Duplicates from Sorted Array Python | PHP
$${\color{green}Easy}$$ Remove Element Python | PHP
$${\color{green}Easy}$$ Shuffle the Array Python | PHP
$${\color{green}Easy}$$ Concatenation of Array Python | PHP
$${\color{green}Easy}$$ Baseball Game Python | PHP
$${\color{green}Easy}$$ Valid Parentheses Python | PHP
$${\color{gold}Medium}$$ Min Stack Python | PHP

LINKED LISTS

Difficulty Problem Solution
$${\color{green}Easy}$$ Reverse Linked List Python | PHP
$${\color{green}Easy}$$ Merge Two Sorted Lists Python | PHP
$${\color{gold}Medium}$$ Design Linked List Python | PHP
$${\color{gold}Medium}$$ Design Browser History Python | PHP
$${\color{green}Easy}$$ Number of Students Unable to Eat Lunch Python | PHP
$${\color{green}Easy}$$ Implement Stack using Queues Python | PHP

RECURSION

Difficulty Problem Solution
$${\color{green}Easy}$$ Reverse Linked List Python | PHP
$${\color{green}Easy}$$ Fibonacci Number Python | PHP
$${\color{green}Easy}$$ Climbing Stairs Python | PHP

SORTING

Difficulty Problem Solution
$${\color{gold}Medium}$$ Sort an Array Python | PHP
$${\color{red}Hard}$$ Merge k Sorted Lists Python | PHP
$${\color{gold}Medium}$$ Kth Larges Element in an Array Python | PHP
$${\color{gold}Medium}$$ Sort Colors Python | PHP

BINARY SEARCH

Difficulty Problem Solution
$${\color{green}Easy}$$ Binary Search Python | PHP
$${\color{gold}Medium}$$ Search a 2D Matrix Python | PHP

TREES

Difficulty Problem Solution
$${\color{green}Easy}$$ Search in a Binary Search Tree Python | PHP
$${\color{gold}Medium}$$ Lowest Common Ancestor of a Binary Search Tree Python | PHP
$${\color{gold}Medium}$$ Insert into a Binary Search Tree Python | PHP
$${\color{gold}Medium}$$ Delete Node in a BST Python | PHP
$${\color{green}Easy}$$ Binary Tree Inorder Traversal Python | PHP
$${\color{gold}Medium}$$ Kth Smallest Element in a BST Python | PHP
$${\color{gold}Medium}$$ Construct Binary Tree from Preorder and Inorder traversal Python | PHP
$${\color{gold}Medium}$$ Binary Tree Level Order Traversal Python | PHP
$${\color{gold}Medium}$$ Binary Tree Right Side View Python | PHP

BACKTRACKING

Difficulty Problem Solution
$${\color{green}Easy}$$ Path Sum Python | PHP
$${\color{gold}Medium}$$ Subsets Python | PHP
$${\color{gold}Medium}$$ Combination Sum Code

HEAP PRIORITY QUEUE

Difficulty Problem Solution
$${\color{green}Easy}$$ Kth Largest Element in a Stream Code
$${\color{green}Easy}$$ Last Stone Weight Code
$${\color{gold}Medium}$$ K Closest Point to Origin Code

HASHING

Difficulty Problem Solution
$${\color{green}Easy}$$ Contains Duplicate Code
$${\color{green}Easy}$$ Two Sum Code
$${\color{gold}Medium}$$ LRU Cache Code
$${\color{green}Easy}$$ Design HashSet Code
$${\color{green}Easy}$$ Design HashMap Code

GRAPHS

Difficulty Problem Solution
$${\color{gold}Medium}$$ Number of Islands Code
$${\color{gold}Medium}$$ Max Area of Island Code
$${\color{gold}Medium}$$ Shortest Path in Binary Matrix Code
$${\color{gold}Medium}$$ Rotting Oranges Code
$${\color{gold}Medium}$$ Clone Graph Code
$${\color{gold}Medium}$$ Courses Schedule Code

DYNAMIC PROGRAMMING

Difficulty Problem Solution
$${\color{gold}Medium}$$ House Robber Code
$${\color{gold}Medium}$$ Unique Paths Code
$${\color{gold}Medium}$$ Unique Paths II Code
$${\color{gold}Medium}$$ Longest Common Subsequence Code

BIG MANIPULATION

Difficulty Problem Solution
$${\color{green}Easy}$$ Number of 1 Bits Code
$${\color{green}Easy}$$ Counting Bits Code
$${\color{green}Easy}$$ Reverse Bits Code

About

NeetCode.com algorithm practices

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published