Skip to content

This repo is going to contain multiple solutions(approaches) to all 30 problems of JuneLeetCodingChallenge of LeetCode(One problem in a day)

Notifications You must be signed in to change notification settings

RitikaJain8818/JuneLeetCodingChallenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Leetcode Profile

Problem Name Difficulty(Relative to me) Java Time Complexity Space Complexity Data Structure Used Algorithm Used
Invert Binary Tree Easy Code O(Height of Tree) O(No. of Nodes) Binary Tree Recursion
Invert Binary Tree Easy Code O(No. of Nodes) O(No. of Nodes) Binary Tree Iterative
Delete Node in a Linked List Easy Code O(1) O(1) LinkedList NA
Two City Scheduling Easy Code O(N) O(N) Arrays NA
Reverse String Easy Code O(N) O(1) String NA
Random Pick with Weight Hard Code O(N+logN) O(N) NA Maths
Queue Reconstruction by Height Medium Code O(NlogN) O(N) Arrays NA
Coin Change 2 Medium Code O(M*N) O(N) NA Dynamic Programming
Power of Two Easy Code O(logN) O(logN) NA Maths
Is Subsequence Easy Code O(2^N) O(1) NA Recursive
Search Insert Position Easy Code O(logN) O(1) NA Binary Search
Sort Colors Easy Code O(N) O(1) NA Dutch National Flag Algorithm OR 3-way Partitioning
Insert Delete GetRandom O(1) Medium Code O(1) O(N) HashMap NA
Largest Divisible Subset Hard Code O(N^2) O(N) NA NA
Cheapest Flights Within K Stops Hard Code O(N^2) O(N) NA DFS
Search in a Binary Search Tree Easy Code O(logN) O(1) Binary Search Tree NA
Validate IP Address Medium Code O(N) O(1) NA String Manipulation
Surrounded Regions Medium Code O(M*N) O(1) NA DFS
H-Index II Medium Code O(logN) O(1) NA Binary Search

About

This repo is going to contain multiple solutions(approaches) to all 30 problems of JuneLeetCodingChallenge of LeetCode(One problem in a day)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages