/competitive_programming

My solutions to problems from platforms like leetcode, euler, codeforces....etc

Primary LanguagePythonMIT LicenseMIT

Competitive Programming 💻 🚀

About

This repository is where I put my solutions to problems mainly from LeetCode platform, I try to document each solution and explain how it works.

Table of Content

I put together this table as an index to make it easier to navigate the repo, I keep updating it along the way.

Note: Click the green check marks to go to source code.

Algorithms

# Title 🐍 C++ GO Difficulty
1 Two Sum ✔️ ✔️ ✔️ Easy
3 Longest Substring Without Repeating Characters ✔️ ✔️ Medium
6 Zigzag Conversion ✔️ Medium
9 Palindrome Number ✔️ Easy
11 Container With Most Water ✔️ Medium
13 Roman to Integer ✔️ Easy
14 Longest Common Prefix ✔️ Easy
20 Valid Parentheses ✔️ Easy
26 Remove Duplicates from Sorted Array ✔️ Easy
35 Search Insert Position ✔️ Easy
36 Valid Sudoku ✔️ Medium
49 Group Anagrams ✔️ Medium
53 Maximum Subarray ✔️ Easy
66 Plus One ✔️ Easy
71 Simplify Path ✔️ Medium
74 Search a 2D Matrix ✔️ Medium
88 Merge Sorted Array ✔️ Easy
118 Pascal's Triangle ✔️ Easy
121 Best Time to Buy and Sell Stock ✔️ Easy
141 Linked List Cycle ✔️ ✔️ Easy
175 Combine Two Tables Easy
217 Contains Duplicate ✔️ ✔️ ✔️ Easy
238 Product of Array Except Self ✔️ Medium
242 Valid Anagram ✔️ ✔️ ✔️ Easy
350 Intersection of Two Arrays II ✔️ Easy
278 First Bad Version ✔️ Easy
347 Top K Frequent Elements ✔️ Medium
383 Ransom Note ✔️ Easy
387 First Unique Character in a String ✔️ Easy
509 Fibonacci Number ✔️ Easy
566 Reshape the Matrix ✔️ Easy
704 Binary Search ✔️ Easy
997 Find the Town Judge ✔️ Easy

Database

# Title SQL Difficulty
176 Second Highest Salary ✔️ Medium
177 Nth Highest Salary ✔️ Medium
181 Employees Earning More Than Their Managers ✔️ Easy
182 Duplicate Emails ✔️ Easy
183 Customers Who Never Order ✔️ Easy
184 Department Highest Salary ✔️ Medium
196 Delete Duplicate Emails ✔️ Easy