solutions.py
57 subscribers
206 photos
183 links
admin: @Xojarbu
Download Telegram
#linked_list
Title: Linked List Delete Last Occurrence of Value
URL: binarysearch.com
Level: Medium
github
#linked_list
Title: 876. Middle of the Linked List
URL: leetcode
Level: Easy
github
#linked_list
Title: 2095. Delete the Middle Node of a Linked List
URL: leetcode
Level: Medium
github

It is Not the most optimal solution )
#linked_list
Title: 237. Delete Node in a Linked List
URL: leetcode
Level: Easy
github
#arrays
Title: 88. Merge Sorted Array
URL: leetcode
Level: Easy🙃
#arrays
Title: Count Common Words With One Occurrence
URL: leetcode
Level: Easy
github
#arrays
Title: 485. Max Consecutive Ones
URL: leetcode
Level: Easy
github
#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