Skip to content

andrenbrandao/algorithm-problems

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Algorithm Problems

Python License

Overview

These are my solutions to multiple algorithm problems. Most of them are from Leetcode, but others will be from courses or books.

For my solutions to the Cracking The Code Interview book, check this repository. I have also created a directory to save my implementations of some Data Structures.

You can checkout my LeetCode Profile.

Important Links

Arrays and Strings

# Title Solution Difficulty Platform
905 Sort Array by Parity Python Easy LeetCode
38 Count and Say Python Medium LeetCode
14 Longest Common Prefix Python Easy LeetCode
382 Move Zeroes Python Easy LeetCode
26 Remove Duplicates from Sorted Array Python Easy LeetCode
- Friend Cycle Python - -
- Wrap Lines Python - -
551 Student Attendance Record I Python Easy LeetCode
2269 Find the K-Beauty of a Number Python Easy LeetCode

Linked Lists

# Title Solution Difficulty Platform
141 Linked List Cycle Python Easy LeetCode
109 Convert Sorted List to Binary Search Tree Python Medium LeetCode

Trees and Graphs

# Title Solution Difficulty Platform
- Maximum Common Prefix Between Any Two Words Python - -
1584 Min Cost to Connect All Points Python Medium LeetCode
- Swap Nodes Python Medium HackerRank
797 All Paths From Source to Target Python Medium LeetCode
1020 Number of Enclaves Python Medium LeetCode
1905 Count Sub Islands Python Medium LeetCode
542 01 Matrix Python Medium LeetCode
547 Number of Provinces Python Medium LeetCode

Recursion and Dynamic Programing

# Title Solution Difficulty Platform
- Add Digits Recursively Python - -
- All Possible Subsequences Python - -
- Count Occurrences Python - -
- H-Tree Construction Python - Pramp
- Has Adjacent Duplicates Python - -
- KeyPad Combinations Python - -
- Knapsack Combinations Python - -
- Min Cost Path Matrix Python - -
- N-Bits Booleans Python - -
51 N-Queens Python Hard LeetCode
200 Number of Islands Python Medium LeetCode
47 Permutations II Python Medium LeetCode
- Possible Phrases Python - -
- Reverse String Python - -
37 Sudoku Solver Python Hard LeetCode
62 Unique Paths Python Medium LeetCode
- Ways To Climb Stairs Python - -
79 Word Search Python Medium LeetCode
- Winning Hand Python - -
- The Coin Change Problem Python Medium HackerRank

Sorting and Searching

# Title Solution Difficulty Platform
2279 Maximum Bags With Full Capacity of Rocks Python Medium LeetCode
162 Find Peak Element Python Medium LeetCode
- External Sorting Python - -

NP-Complete

# Title Solution Difficulty Platform
- Set Covering Problem Python - Grokking Algorithms Book

License

MIT © André Brandão

About

Solutions to LeetCode and other algorithm problems.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages