Skip to content

akunopaka/leetcode

Repository files navigation

LeetCode
https://leetcode.com/akunopaka

My Solution to Problems from Leetcode.com

Leetcode.com is a website that provides programming challenges to help developers improve their coding skills. I have been using this site to help me improve my coding skills, and I have come up with my own solutions to some of the problems. My approach is to first break down the problem into smaller pieces. Then, I look up the different methods and algorithms that can be used to solve the problem. Once I have a better understanding of the problem and the available solutions, I try to find the most efficient way to solve the problem.

I often use the divide and conquer approach, where I break down the problem into smaller subproblems and solve them individually. This helps reduce the complexity of the problem, making it easier to understand and solve. I also use the brute force method to solve the problem, which involves trying every possible solution until the correct one is found.

To test my solutions, I use the in-built test cases provided by Leetcode.com. This allows me to quickly check if my code is doing what it's supposed to do. I also use the debugging feature to check for errors in my code.

Overall, my approach to solving problems from Leetcode.com has helped me improve my coding skills and become a better programmer. I am constantly improving my coding skills by trying out different solutions and learning from my mistakes.

__
Sincerely,
Andrii Sokol

My Solutions for Study Plans:

My LeetCode Solutions

My LeetCode Stats:

Difficulty All Easy Medium Hard
Count 182 77 85 20
# Name Difficulty Solutions JS PHP
0001 Two Sum Easy Git Solution JS PHP
0007 Reverse Integer Medium Git Solution JS PHP
0014 Longest Common Prefix Easy Git Solution JS PHP
0020 Valid Parentheses Easy Git Solution JS PHP
0021 Merge Two Sorted Lists Easy Git Solution JS PHP
0023 Merge k Sorted Lists Hard x PHP
0024 Swap Nodes in Pairs Medium Git Solution JS PHP
0028 Find the Index of the First Occurrence in a String Easy Git Solution JS PHP
0054 Spiral Matrix Medium Git Solution JS PHP
0059 Spiral Matrix II Medium Git Solution JS PHP
0062 Unique Paths Medium Git Solution JS PHP
0064 Minimum Path Sum Medium Git Solution JS PHP
0070 Climbing Stairs Easy Git Solution JS PHP
0071 Simplify Path Medium Git Solution JS PHP
0098 Validate Binary Search Tree Medium Git Solution JS PHP
0101 Symmetric Tree Easy Git Solution JS PHP
0102 Binary Tree Level Order Traversal Medium Git Solution JS PHP
0106 Construct Binary Tree from Inorder and Postorder Traversal Medium Git Solution JS PHP
0109 Convert Sorted List to Binary Search Tree Medium Git Solution JS PHP
0121 Best Time to Buy and Sell Stock Easy Git Solution JS PHP
0129 Sum Root to Leaf Numbers Medium Git Solution JS PHP
0133 Clone Graph Medium Git Solution JS PHP
0142 Linked List Cycle II Medium Git Solution JS PHP
0200 Number of Islands Medium Git Solution JS PHP
0202 Happy Number Easy Git Solution JS PHP
0205 Isomorphic Strings Easy Git Solution JS PHP
0206 Reverse Linked List Easy Git Solution JS PHP
0208 Implement Trie (Prefix Tree) Medium Git Solution JS PHP
0211 Design Add and Search Words Data Structure Medium Git Solution JS PHP
0235 Lowest Common Ancestor of a Binary Search Tree Medium Git Solution JS PHP
0278 First Bad Version Easy Git Solution JS PHP
0299 Bulls and Cows Medium Git Solution JS PHP
0319 Bulb Switcher Medium Git Solution JS PHP
0347 Top K Frequent Elements Medium Git Solution JS PHP
0382 Linked List Random Node Medium Git Solution JS PHP
0392 Is Subsequence Easy Git Solution JS PHP
0394 Decode String Medium Git Solution JS PHP
0399 Evaluate Division Medium Git Solution JS PHP
0409 Longest Palindrome Easy Git Solution JS PHP
0424 Longest Repeating Character Replacement Medium Git Solution JS PHP
0438 Find All Anagrams in a String Medium Git Solution JS PHP
0443 String Compression Medium Git Solution JS PHP
0509 Fibonacci Number Easy Git Solution JS PHP
0589 N-ary Tree Preorder Traversal Easy Git Solution JS PHP
0605 Can Place Flowers Easy Git Solution JS PHP
0649 Dota2 Senate Medium Git Solution JS PHP
0684 Redundant Connection Medium Git Solution JS PHP
0692 Top K Frequent Words Medium Git Solution JS PHP
0703 Kth Largest Element in a Stream Easy Git Solution JS PHP
0704 Binary Search Easy Git Solution JS PHP
0724 Find Pivot Index Easy Git Solution JS PHP
0733 Flood Fill Easy Git Solution JS PHP
0746 Min Cost Climbing Stairs Easy Git Solution JS PHP
0815 Bus Routes Hard Git Solution JS PHP
0844 Backspace String Compare Easy Git Solution JS PHP
0875 Koko Eating Bananas Medium Git Solution JS PHP
0876 Middle of the Linked List Easy Git Solution JS PHP
0881 Boats to Save People Medium Git Solution JS PHP
0912 Sort an Array Medium x PHP
0946 Validate Stack Sequences Medium Git Solution JS PHP
0958 Check Completeness of a Binary Tree Medium Git Solution JS PHP
1020 Number of Enclaves Medium Git Solution JS PHP
1035 Uncrossed Lines Medium Git Solution JS PHP
1046 Last Stone Weight Easy Git Solution JS PHP
1254 Number of Closed Islands Medium Git Solution JS PHP
1345 Jump Game IV Hard JS x
1372 Longest ZigZag Path in a Binary Tree Medium Git Solution JS PHP
1396 Design Underground System Medium Git Solution JS PHP
1406 Stone Game III Hard Git Solution JS PHP
1431 Kids With the Greatest Number of Candies Easy Git Solution JS PHP
1456 Maximum Number of Vowels in a Substring of Given Length Medium Git Solution JS PHP
1472 Design Browser History Medium JS x
1480 Running Sum of 1d Array Easy Git Solution JS PHP
1498 Number of Subsequences That Satisfy the Given Sum Condition Medium Git Solution JS PHP
1539 Kth Missing Positive Number Easy Git Solution JS PHP
1547 Minimum Cost to Cut a Stick Hard Git Solution JS PHP
1572 Matrix Diagonal Sum Easy Git Solution JS PHP
1579 Remove Max Number of Edges to Keep Graph Fully Traversable Hard Git Solution JS PHP
1603 Design Parking System Easy Git Solution JS PHP
1639 Number of Ways to Form a Target String Given a Dictionary Hard Git Solution JS PHP
1697 Checking Existence of Edge Length Limited Paths Hard Git Solution JS PHP
1706 Where Will the Ball Fall Medium Git Solution JS PHP
1768 Merge Strings Alternately Easy Git Solution JS PHP
1822 Sign of the Product of an Array Easy Git Solution JS PHP
1964 Find the Longest Valid Obstacle Course at Each Position Hard Git Solution JS PHP
2187 Minimum Time to Complete Trips Medium Git Solution JS PHP
2218 Maximum Value of K Coins From Piles Hard Git Solution JS PHP
2300 Successful Pairs of Spells and Potions Medium Git Solution JS PHP
2390 Removing Stars From a String Medium Git Solution JS PHP
2405 Optimal Partition of String Medium Git Solution JS PHP
2439 Minimize Maximum of Array Medium Git Solution JS PHP
2444 Count Subarrays With Fixed Bounds Hard Git Solution JS PHP

Last update: Wed, 31 May 2023 11:07:07 GMT

Stand with Ukraine