LeetCode-June-2020 A collection of solutions for the June LeetCoding Challenge 2020. S.No Problem Link Difficulty (Relative to me) Algorithm(s) Used Data Structure(s) Used Time Complexity Space Complexity Time to solve 1 https://leetcode.com/explore/challenge/card/june-leetcoding-challenge/539/week-1-june-1st-june-7th/3347/ Easy NA BT O(n) O(1) Within 15 mins 2 https://leetcode.com/explore/challenge/card/june-leetcoding-challenge/539/week-1-june-1st-june-7th/3348/ Easy NA LL O(1) O(1) Within 15 mins 3 https://leetcode.com/explore/challenge/card/june-leetcoding-challenge/539/week-1-june-1st-june-7th/3349/ Easy NA Array O(n) O(n) Within 15 mins 4 https://leetcode.com/explore/challenge/card/june-leetcoding-challenge/539/week-1-june-1st-june-7th/3350/ Easy NA Array O(n) O(1) Within 15 mins 5 https://leetcode.com/explore/challenge/card/june-leetcoding-challenge/539/week-1-june-1st-june-7th/3351/ Easy NA Map NA NA Within 15 mins 6 https://leetcode.com/explore/challenge/card/june-leetcoding-challenge/539/week-1-june-1st-june-7th/3352/ Medium NA List NA NA Within 60 mins 7 https://leetcode.com/explore/challenge/card/june-leetcoding-challenge/539/week-1-june-1st-june-7th/3353/ Easy NA Array DP NA Within 20 mins 8 https://leetcode.com/explore/challenge/card/june-leetcoding-challenge/540/week-2-june-8th-june-14th/3354/ Easy NA NA NA NA Within 5 mins 9 https://leetcode.com/explore/challenge/card/june-leetcoding-challenge/540/week-2-june-8th-june-14th/3355/ Easy NA NA NA NA Within 5 mins 10 https://leetcode.com/explore/challenge/card/june-leetcoding-challenge/540/week-2-june-8th-june-14th/3356/ Easy NA NA NA NA Within 15 mins 11 https://leetcode.com/explore/challenge/card/june-leetcoding-challenge/540/week-2-june-8th-june-14th/3357/ Easy NA NA NA NA Within 15 mins 12 https://leetcode.com/explore/challenge/card/june-leetcoding-challenge/540/week-2-june-8th-june-14th/3358/ Easy NA NA NA NA Within 15 mins 13 https://leetcode.com/explore/challenge/card/june-leetcoding-challenge/540/week-2-june-8th-june-14th/3359/ Medium NA DP NA NA Within 45 mins 14 https://leetcode.com/explore/challenge/card/june-leetcoding-challenge/540/week-2-june-8th-june-14th/3360/ Hard NA BFS NA NA Within 90 mins 15 https://leetcode.com/explore/challenge/card/june-leetcoding-challenge/541/week-3-june-15th-june-21st/3361/ Easy BST DFS NA NA Within 10 mins 16 https://leetcode.com/explore/challenge/card/june-leetcoding-challenge/541/week-3-june-15th-june-21st/3362/ Easy NA NA NA NA Within 10 mins 17 https://leetcode.com/explore/challenge/card/june-leetcoding-challenge/541/week-3-june-15th-june-21st/3363/ Easy DFS NA NA NA Within 30 mins 18 https://leetcode.com/explore/challenge/card/june-leetcoding-challenge/541/week-3-june-15th-june-21st/3364/ Easy BS NA NA NA Within 30 mins 19 https://leetcode.com/explore/challenge/card/june-leetcoding-challenge/541/week-3-june-15th-june-21st/3365/ Hard Rabin-Karp NA NA NA Within 120 mins 20 https://leetcode.com/explore/challenge/card/june-leetcoding-challenge/541/week-3-june-15th-june-21st/3366/ Medium NA Array NA NA Within 45 mins 21 https://leetcode.com/explore/challenge/card/june-leetcoding-challenge/541/week-3-june-15th-june-21st/3367/ Medium DP Array NA NA Within 30 mins 22 https://leetcode.com/explore/challenge/card/june-leetcoding-challenge/542/week-4-june-22nd-june-28th/3368/ Easy NP Map NA NA Within 15 mins