solutions.py
57 subscribers
206 photos
183 links
admin: @Xojarbu
Download Telegram
#arrays
Title: 1089. Duplicate Zeros
URL: leetcode
Level: Easy
github
#arrays
Title: 905. Sort Array By Parity (In-place)
URL: leetcode
Level: Easy
github
! still not very optimized
#hash_table
Title: 442. Find All Duplicates in an Array
URL: leetcode
Level: Medium
#arrays
Title: 929. Unique Email Addresses
URL: leetcode
Level: Easy
#dp
Title: N-th Tribonacci Number
URL: leetcode
Level: Easy
#dp
Title: Climbing Stairs
URL: leetcode
Level: Easy
#stack
Title: 496. Next Greater Element I
URL: leetcode
Level: Easy
github

Long way implementation of stack😉
#stack
Title: Score of Parentheses
URL: leetcode
Level: Medium
github

Time: O(N)
Space: O(N)
👍1
#graph #dfs

Title: Flood fill
URL: leetcode
Level: Easy
github
👍1
#tree #dfs

Title: Same Tree
URL: leetcode
Level: Easy
github

Time: O(N) -> O(q+p)
👍1
#tree #dfs

Title: Maximum Depth of Binary Tree
URL: leetcode
Level: Easy
👍2
#dp
Title: Jump Game II
URL: leetcode
Level: Medium
👍1
#prefix_sum
Title: 303. Range Sum Query - Immutable
leetcode
👍4
Check this out, it seems very useful quiz about Time Complexity:
https://www.interviews.school/timecomplexity#quiz
👍2
#subarray

Title: 53. Maximum Subarray
leetcode

(solution is from video, not by me yet)
👍2
#sliding_window
Title: 121.Best Time to Buy and Sell Stock
URL: leetcode
Level: Easy
👍2
#array
Title: 34. Find First and Last Position of Element in Sorted Array
URL:
https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array/
Level: Medium
Big O: O(N)
version 1