algorithms/

directory
v0.0.0-...-162ff97 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 10, 2023 License: MIT

README

LeetCode Solutions

Description

This repository contains my solutions to problems from LeetCode. I am using Go for solving the problems, and each solution includes comments explaining my approach.

How to Use

You can browse the solutions for learning purposes or as inspiration for your own solutions. Each solution includes a link to the corresponding problem on LeetCode.

Contributing

If you would like to contribute to this repository, please first open an issue or join the discussion of existing ones.

Algorithm Solutions

# Title Solution Difficulty
0001 Two Sum GO Easy
0020 Valid Parentheses GO Easy
0021 Merge Two Sorted Lists GO Easy
0062 Unique Paths GO Medium
0070 Climbing Stairs GO Easy
0074 Search a 2D Matrix GO Medium
0098 Validate Binary Search Tree GO Medium
0102 Binary Tree Level Order Traversal GO Medium
0121 Best Time to Buy and Sell Stock GO Easy
0142 Linked List Cycle II GO Medium
0191 Number of 1 Bits GO Easy
0200 Number of Islands GO Medium
0205 Isomorphic Strings GO Easy
0206 Reverse Linked List GO Easy
0231 Power of Two GO Easy
0235 Lowest Common Ancestor of a Binary Search Tree GO Medium
0278 First Bad Version GO Easy
0299 Bulls and Cows GO Medium
0383 Ransom Note GO Easy
0392 Is Subsequence GO Easy
0394 Decode String GO Medium
0409 Longest Palindrome GO Easy
0412 Fizz Buzz GO Easy
0424 Longest Repeating Character Replacement GO Medium
0438 Find All Anagrams in a String GO Medium
0509 Fibonacci Number GO Easy
0589 N-ary Tree Preorder Traversal GO Easy
0692 Top K Frequent Words GO Medium
0704 Binary Search GO Easy
0724 Find Pivot Index GO Easy
0733 Flood Fill GO Easy
0746 Min Cost Climbing Stairs GO Easy
0844 Backspace String Compare GO Easy
0876 Middle of the Linked List GO Easy
1046 Last Stone Weight GO Easy
1342 Number of Steps to Reduce a Number to Zero GO Easy
1480 Running Sum of 1d Array GO Easy
1491 Average Salary Excluding the Minimum and Maximum Salary GO Easy
1672 Richest Customer Wealth GO Easy
1768 Merge Strings Alternately GO Easy
1991 Find the Middle Index in Array GO Easy
2235 Add Two Integers GO Easy
2236 Root Equals Sum of Children GO Easy

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL