solutions.py
57 subscribers
206 photos
183 links
admin: @Xojarbu
Download Telegram
#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
solutions.py
Two Sum #Leetcode 🔗Link
Version 2
Time: O(N)
👍2🔥2
My first Badge at leetcode
🔥7
Title: 128. Longest Consecutive Sequence
URL:
https://leetcode.com/problems/longest-consecutive-sequence/description/
Level: Medium
Big O: O(N)
version 1
🔥1