# LeetCode Solutions and Explanations

Here is a list of LeetCode problems solved by Goodtecher. Goodtecher will keep updating solutions and explains to LeetCode problems.…

Be a Good Techer and Tech for Good. www.goodtecher.com

Here is a list of LeetCode problems solved by Goodtecher. Goodtecher will keep updating solutions and explains to LeetCode problems.…

Description https://leetcode.com/problems/climbing-stairs/ You are climbing a stair case. It takes n steps to reach to the top. Each time you can either…

Description https://leetcode.com/problems/friend-circles/description/ There are N students in a class. Some of them are friends, while some are not. Their friendship is transitive…

Union Find is a data structure to find whether two elements in the same group (Find) merge two groups of…

Description https://leetcode.com/problems/first-unique-character-in-a-string/description/ Given a string, find the first non-repeating character in it and return it’s index. If it doesn’t exist,…

Description https://leetcode.com/problems/largest-rectangle-in-histogram/description/ Given n non-negative integers representing the histogram’s bar height where the width of each bar is 1, find the area…

×