Skip to content

uriahpissalidis/leetcode_easy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

leetcode_easy

-Added a python solution to leetcode #9 on 03/18/22, is an integer a palindrome (without converting to a string)
-Added java solution to leetcode #26 on 03/30/22, remove duplicate integers from a sorted array
-Added python solutions to leetcode problems #217 and #344 on 04/01/2022, I don't fully understand the bitwise solution on "Reverse a String"
will add an explanation when I look it up!
-Added a python solution to leetcode #700 on 04/14/22, not terribly difficult, just needed to look up the syntax
-Added a python solution to leetcode #35 on 04/27/22, not hard, implementing a binary search is the idea behind this question
-Added a python solution to leetcode #2011 on 04/29/22, three ways to solve the problem, last solution was definitely the fastest
-Added a python solution to leetcode #35 on 05/01/22
-Added a solution to leetcode #905 on 05/02/22, sort array by even/odd parity, solution is not optimized, will be writing a new one shortly
-Added a solution to leetcode #225 on 05/05/22, implement a stack using a queue, the only tricky bit about this question was making the insert method
-Added a java solution to leetcode #1502 on 05/08/22, can make arithmetic progression from sequence
-Added a python solution to leetcode #1108 on 05/08/22, defanging an IP address
-Added a java and python solution to leetcode #1523 on 05/08/22, count odd numbers in an interval range
-Added a python solution to leetcode #2114 on 05/10/22, count the max number of words in a sentence, added a new solution on 11/10/22
-Added a java solution to leetcode #1431 on 05/14/22, Kids With the Greatest Number of Candies, trivial solution, figuring out optimizations
-Added a python solution to leetcode #771 on 05/14/22, Jewels And Stones, basically wanted a naive implementation of a hash table (or dict in python)
-Added a java solution to leetcode #1528 on 05/17/22, Shuffle String, the tricky bit was trying to figure out how to "unshuffle" the string with the indices
-Added a python solution to leetcode #1389 on 05/18/22, Create Target Array in the Given Order, doing via python almost feels like cheating
-Added a python solution to leetcode #938 on 05/22/22, Range Sum of a Binary Search Tree, once traversal is figured out, the difficulty is trivial
-Added a python solution to leetcode #1773 on 05/25/22, Count Items Matching a Rule, simple case and search
-Added a python solution to leetcode #1859 on 05/25/22, Sorting the Sentence, used split, join, and list slicing
-Added a python solution to leetcode #191 on 05/26/22, Number of 1 Bits
-Added a python solution to leetcode #1342 on 05/26/22, Number of Steps to Reduce a Number to Zero, got this one in one try
-Added a python solution to leetcode #268 on 05/27/22, Missing Number, overcomplicating the solution made this problem more trouble than it was worth
-Added a python solution to leetcode #1221 on 05/29/22, Split a String in Balanced Strings, once the algo was realized, it was very easy
-Added two python solutions to leetcode #53 on 05/31/22, Maximum Subarray, once I familiarized myself with the max function and realized it was a simple summation problem, the initial difficulty faded away
-Added a python solution to leetcode #1480 on 06/01/22, Running Sum of a 1d array, easiest question on leetcode
-Added a python solution to leetcode #867 on 06/02/22, Transpose of a Matrix, remembering rows and columns in a 2D matrix was a little hard to recall, other than that using the append method makes this problem trivial
-Added a python solution to leetcode #1791 on 06/04/22, Find Center of Star Graph
-Added a python solution to leedcode #1662 on 06/05/22, Check if Two String Arrays are Equivalent, added two more solutions on 10/25/22
-Added a python solution to leetcode #2259 on 06/06/22, Remove Digit From Number to Maximize Result
-Added a python solution to leetcode #88 on 06/07/22, Merge Sorted Array, again list slice reigns supreme
-Added a python solution to leetcode #1332 on 06/08/22, Remove Palindromic Subsequences, easy once the questions was READ
-Added a python solution to leetcode #1588 on 06/11/22, Sum of all Odd Length Subarrays
-Added a python solution to leetcode #1290 on 06/11/22, Convert Binary Number in a Linked List to Integer
-Added a python solution to leetcode #14 on 06/14/22, Longest Common Prefix, realizing PREFIX was a big step to solving this problem
-Added a python solution to leetcode #20 on 06/15/22, Valid Parentheses, stack makes the problem easy, I'm curious how to optimize the runtime though
-Added a python solution to leetcode #2006 on 06/20/22, Count Number of Pair With Absolute Difference K
-Added a python solution to leetcode #557 on 06/23/22, Reverse Words in a String III, going to add a solution without built-in methods for practice after this week
-Added a python solution to leetcode #1684 on 06/24/22, Count the Number of Consistent Strings, initially had a solution to use two sets and intersection but I got lost in the minutia of it, will implement that solution later to check the speed of it
-Added a python solution to leetcode #709 on 06/24/22, To Lower Case, the library solution is much faster and efficient than the code lol
-Added a python solution to leetcode #1816 on 06/25/22, Truncate Sentence, done two ways! With library methods and an iteratiive solution
-Added a python solution to leetcode #1832 on 06/25/22, Check if the Sentence Is Pangram
-Added a python solution to leetcode #1913 on 06/25/22, Maximum Product Difference Between Two Pairs, will add a solution without sorting soon
-Added a python solution to leetcode #1710 on 07/01/22, Maximum Units on a Truck
-Added a python solution to leetcode #2315 on 07/01/22, Count Asterisks
-Added a python solution to leetcode #1021 on 07/05/22, Remove Outermost Parentheses
-Added a python solution to leetcode #509 on 07/06/22, Fibonacci Number (one method pushed, another pushed later [more pythonic solutions])
-Added a python solution to leetcode #804 on 07/07/22, Unique Morse Code Words
-Added a python solution to leetcode #1844 on 07/09/22, Replace All Digits with Characters
-Added a python solution to leetcode #1967 on 07/12/22, Number of Strings That Appear as Substrings in Word
-Added a python solution to leetcode #832 on 07/12/22, Flipping an Image
-Added a python solution to leetcode #1572 on 07/14/22, Matrix Diagonal Sum
-Added a python solution to leetcode #118 on 07/18/22, Pascal's Triangle
-Added a python solution to leetcode #125 on 07/19/22, Valid Palindrome
-Added a python solution to leetcode #1374 on 07/20/22, Generate a String With Characters That Have Odd Counts
-Added a python solution to leetcode #2089 on 07/23/22, Find Target Indices After Sorting Array, two ways, commented solution is faster
-Added a python solution to leetcode #2000 on 07/23/22, Reverse Prefix of Word
-Added a python solution to leetcode #2351 on 07/25/22, First Letter to Appear Twice
-Added a python solution to leetcode #1047 on 07/26/22, Remove All Adjacent Duplicates In String
-Added a python solution to leetcode #1732 on 07/27/22, Find the Highest Altitude
-Added a python solution to leetcode #242 on 07/28/22, Valid Anagram, worth noting that converting to ascii values and comparing will not work in all cases. Updated solution using Counter
-Added a python solution to leetcode #2108 on 07/29/22, Find First Palindromic String in the Array
-Added a python solution to leetcode #1827 on 07/29/22, Minimum Operations to Make the Array Increasing
-Added a python solution to leetcode #1704 on 07/29/22, Determine if String Halves Are Alike
-Added a python solution to leetcode #1748 on 07/29/22, Sum of Unique Elements
-Added a python solution to leetcode #2185 on 07/29/22, Counting Words With a Given Prefix
-Added a python solution to leetcode #1295 on 08/02/2022, Find Numbers with Even Number of Digits
-Added a python solution to leetcode #1979 on 08/02/22, Find Greatest Common Divisor of Array
-Added a python solution to leetcode #1941 on 08/03/22, Check if All Characters Have Equal Number of Occurrences
-Added a python solution to leetcode #326 on 08/06/22, Power of Three
-Added a python solution to leetcode #561 on 08/08/22, Array Partition
-Added a python solution to leetcode #108 on 08/09/22, Convert Sorted Array to Binary Search Tree
-Added a python solution to leetcode #235 on 08/11/22, Lowest Common Ancestor of a Binary Search Tree
-Added a python solution to leetcode #27 on 08/12/22, Remove Element
-Added a python solution to leetcode #83 on 08/13/22, Remove Duplicates from Sorted List
-Added a python solution to leetcode #1768 on 08/15/22, Merge Strings Alternately, two ways, commented solution I came up with upon first look
-Added a python solution to leetcode #387 on 08/15/22, First Unique Character in a String, two ways, commented solution was initial solution (very slow)
-Added a python solution to leetcode #58 on 08/21/22, Length of Last Word, lots of strange edge cases in this one
-Added a python solution to leetcode #342 on 08/22/22, Power of Four
-Added a python solution to leetcode #234 on 08/23/22, Palindrome Linked List
-Added a python solution to leetcode #383 on 08/24/22, Ransom Note
-Added a python solution to leetcode #70 on 08/25/22, Climbing Stairs
-Added a python solution to leetcode #136 on 08/26/22, Single Number
-Added a python solution to leetcode #590 on 09/04/22, N-ary Tree Postorder Traversal
-Added a python solution to leetcode #258 on 09/06/22, Add Digits, easy once trick is realized
-Added a python solution to leetcode #520 on 09/07/22, Detect Capital, weird title for what the question was asking (in my opinion)
-Added a python solution to leetcode #345 on 09/08/22, Reverse Vowels of a String, 2 ways
-Added a python solution to leetcode #682 on 09/15/22, Baseball Game, follow the simulation and realize how a stack works
-Added a python solution to leetcode #21 on 09/16/22, Merge Two Sorted Lists, once I stopped overthinking it, the solution made sense
-Added a python solution to leetcode #1351 on 09/21/22, Count Negative Numbers in a Sorted Matrix
-Added a python solution to leetcode #2119 on 09/21/22, A Number After a Double Reversal
-Added a python solution to leetcode #2169 on 09/21/22, Count Operations to Obtain Zero
-Added a python solution to leetcode #1051 on 09/21/22, Height Checker
-Added a python solution to leetcode #961 on 09/21/22, N-Repeated Element in Size 2N Array
-Added a python solution to leetcode #338 on 09/24/22, Counting Bits
-Added a python solution to leetcode #461 on 09/24/22, Hamming Distance, done two ways, added a string solution on 10/09/22
-Added a python solution to leetcode #2278 on 09/25/22, Percentage of Letter in String, two ways
-Added a python solution to leetcode #876 on 09/27/22, Middle of the Linked List, two ways
-Added a python solution to leetcode #392 on 09/28/22, Is Subsequence, two pointer approach
-Added a python solution to leetcode #2255 on 09/30/22, Count Prefixes of a Given String
-Added a python solution to leetcode #191 on 10/01/22, Number of 1 Bits, added two bit manipulation solutions
-Added a python solution to leetcode #100 on 10/02/22, Same Tree
-Added a python solution to leetcode #409 on 10/03/22, Longest Palindrome, 2 ways, same idea
-Added a python solution to leetcode #112 on 10/04/22, Path sum, 2 ways to illustrate different approaches within DFS solutions
-Added a python solution to leetcode #160 on 10/06/22, Intersection of Two Linked Lists
-Added a python solution to leetcode #653 on 10/08/22, Two Sum IV - Input is a BST
-Added a python solution to leetcode #2357 on 10/13/22, Make Array Zero by Subtracting Equal Amounts
-Added a python solution to leetcode #349 on 10/15/22, Intersection of Two Arrays
-Added a python solution to leetcode #2441 on 10/16/22, Largest Positive Integer That Exists With Its Negative
-Added a python solution to leetcode #2432 on 10/18/22, The Employee That Worked on the Longest Task
-Added a python solution to leetcode #2404 on 10/20/22, Most Frequent Even Element
-Added a python solution to leetcode #2413 on 10/21/22, Smallest Even Multiple
-Added a python solution to leetcode #2395 on 10/22/22, Find Subarrays With Equal Sum
-Added a python solution to leetcode #645, on 10/23/22, Set Mismatch
-Added a python solution to leetcode #2389 on 10/27/22, Longest Subsequence With Limited Sum
-Added a python solution to leetcode #766 on 10/31/22, Toeplitz Matrix
-Added a python solution to leetcode #2347 on 11/02/22, Best Poker Hand
-Added a python solution to leetcode #2206 on 11/03/22, Divide Array Into Equal Pairs
-Added a python solution to leetcode #657 on 11/04/22, Robot Return to Origin
-Added a python solution to leetcode #1323 on 11/06/22, Maximum 69 Number
-Added a python solution to leetcode #2124 on 11/07/22, Check if All A's Appears Before All B's
-Added a python solution to leetcode #2032 on 11/08/22, Two Out of Three
-Added a python solution to leetcode #206 on 11/09/22, Reverse Linked List
-Added a python solution to leetcode #2164 on 11/12/22, Sort Even and Odd Indices Independently
-Added a python solution to leetcode #1974 on 11/16/22, Minimum Time to Type Word Using Special Typewriter
-Added a python solution to leetcode #263 on 11/17/22, Ugly Number
-Added a python solution to leetcode #2469 on 11/18/22, Convert the Temperature
-Added a python solution to leetcode #6241 on 11/19/22, Number of Unequal Triplets in Array
-Added a python solution to leetcode #1460 on 11/21/22, Make Two Arrays Equal by Reversing Subarrays
-Added a python solution to leetcode #933 on 11/23/22, Number of Recent Calls
-Added a python solution to leetcode #2154 on 11/24/22, Keep Multiplying Found Values by Two
-Added a python solution to leetcode #1486 on 11/25/22, XOR Operation in an Array
-Added a python solution to leetcode #2481 on 11/26/22, Minimum Cuts to Divide a Circle
-Added a python solution to leetcode #1207 on 11/30/22, Unique Number of Occurrences, added a faster solution on 12/08/22
-Added a python solution to leetcode #2485 on 12/04/22, Find the Pivot Integer
-Added a python solution to leetcode #872 on 12/07/22, Leaf-Similar Trees
-Added a python solution to leetcode #1403 on 12/09/22, Minimum Subsequence in Non-Increasing Order
-Added a python solution to leetcode #2496 on 12/10/22, Maximum Value of a String in an Array
-Added a python solution to leetcode #2500 on 12/11/22, Delete Greatest Value in Each Row
-Added a python solution to leetcode #1217 on 12/12/22, Minimum Cost to Move Chips to The Same Position
-Added a python solution to leetcode #1356 on 12/15/22, Sort Integers by The Number of 1 Bits
-Added a python solution to leetcode #2506 on 12/18/22, Count Pairs Of Similar Strings
-Added a python solution to leetcode #28 on 08/21/23, Find the Index of the First Occurrence in a String
-Added a python solution to leetcode #1920 on 08/22/23, Build Array from Permutation

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published