Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vvatanabe/go-leetcode

leetcode in Go
https://github.com/vvatanabe/go-leetcode

go leetcode

Last synced: 24 days ago
JSON representation

leetcode in Go

Awesome Lists containing this project

README

        

# go-leetcode ![Go](https://github.com/vvatanabe/go-leetcode/workflows/Go/badge.svg)

[leetcode](https://leetcode.com/) in Go

## Table Contents

### Basic

- [Binary Search](basic/binary_search/main.go)
- [Bubble Sort](basic/bubble_sort/main.go)
- [Selection Sort](basic/selection_sort/main.go)
- [Insertion Sort](basic/insertion_sort/main.go)
- [Heap Sort](basic/heap_sort/main.go)
- [Merge Sort](basic/merge_sort/main.go)
- [Hash Table](basic/hash_table/main.go)
- [Singly Linked List](basic/singly_linked_list/main.go)

### Problem Set

- [Two Sum](problemset/two_sum/main.go)
- [Reverse Integer](problemset/reverse_integer/main.go)
- [Palindrome Number](problemset/palindrome_number/main.go)
- [Roman to Integer](problemset/roman_to_integer/main.go)
- [Longest Common Prefix](problemset/longest_common_prefix/main.go)
- [3Sum](problemset/three_sum/main.go)
- [Valid Parentheses](problemset/valid_parentheses/main.go)
- [Merge Two Sorted Lists](problemset/merge_two_sorted_lists/main.go)
- [Remove Duplicates from Sorted Array](problemset/remove_duplicates_from_sorted_array/main.go)
- [Remove Element](problemset/remove_element/main.go)
- [Implement strStr()](problemset/implement_strstr/main.go)
- [Search Insert Position](problemset/search_insert_position/main.go)
- [Length of Last Word](problemset/length_of_last_word/main.go)
- [Plus One](problemset/plus_one/main.go)
- [Maximum Subarray](problemset/maximum_subarray/main.go)
- [Add Binary](problemset/add_binary/main.go)
- [Sqrt(x)](problemset/sqrtx/main.go)
- [Climbing Stairs](problemset/climbing_stairs/main.go)
- [Merge Sorted Array](problemset/merge_sorted_array/main.go)
- [Same Tree](problemset/same_tree/main.go)
- [Maximum Depth of Binary Tree](problemset/maximum_depth_of_binary_tree/main.go)
- [Binary Tree Level Order Traversal II](problemset/binary_tree_level_order_traversal_ii/main.go)
- [Convert Sorted Array to Binary Search Tree](problemset/convert_sorted_array_to_binary_search_tree/main.go)
- [Pascal's Triangle](problemset/pascals_triangle/main.go)
- [Pascal's Triangle II](problemset/pascals_triangle_ii/main.go)
- [Best Time to Buy and Sell Stock](problemset/best_time_to_buy_and_sell_stock/main.go)
- [Best Time to Buy and Sell Stock II](problemset/best_time_to_buy_and_sell_stock_ii/main.go)
- [Valid Palindrome](problemset/valid_palindrome/main.go)
- [Single Number](problemset/single_number/main.go)
- [Linked List Cycle](problemset/linked_list_cycle/main.go)
- [Min Stack](problemset/min_stack/main.go)
- [Two Sum II - Input array is sorted](problemset/two_sum_ii_input_array_is_sorted/main.go)
- [Excel Sheet Column Title](problemset/excel_sheet_column_title/main.go)
- [Majority Element](problemset/majority_element/main.go)
- [Excel Sheet Column Number](problemset/excel_sheet_column_number/main.go)
- [Factorial Trailing Zeroes](problemset/factorial_trailing_zeroes/main.go)
- [Reverse Bits](problemset/reverse_bits/main.go)
- [Number of 1 Bits](problemset/number_of_1_bits/main.go)
- [Reverse Linked List](problemset/reverse_linked_list/main.go)
- [Contains Duplicate](problemset/contains_duplicate/main.go)
- [Contains Duplicate II](problemset/contains_duplicate_ii/main.go)
- [Implement Stack using Queues](problemset/implement_stack_using_queues/main.go)
- [Invert Binary Tree](problemset/invert_binary_tree/main.go)
- [Power of Two](problemset/power_of_two/main.go)
- [Implement Queue using Stacks](problemset/implement_queue_using_stacks/main.go)
- [LRU Cache](problemset/lru_cache/main.go)
- [Delete Node in a Linked List](problemset/lru_cache/main.go)
- [Valid Anagram](problemset/valid_anagram/main.go)
- [Binary Tree Paths](problemset/binary_tree_paths/main.go)
- [Ugly Number](problemset/ugly_number/main.go)
- [Missing Number](problemset/missing_number/main.go)
- [First Bad Version](problemset/first_bad_version/main.go)
- [Move Zeroes](problemset/move_zeroes/main.go)
- [Word Pattern](problemset/word_pattern/main.go)
- [Nim Game](problemset/nim_game/main.go)
- [Power of Three](problemset/power_of_three/main.go)
- [Power of Four](problemset/power_of_four/main.go)
- [Reverse String](problemset/reverse_string/main.go)
- [Reverse Vowels of a String](problemset/reverse_vowels_of_a_string/main.go)
- [Intersection of Two Arrays](problemset/intersection_of_two_arrays/main.go)
- [Intersection of Two Arrays II](problemset/intersection_of_two_arrays_ii/main.go)
- [Valid Perfect Square](problemset/valid_perfect_square/main.go)
- [Guess Number Higher or Lower](problemset/guess_number_higher_or_lower/main.go)
- [Ransom Note](problemset/ransom_note/main.go)
- [First Unique Character in a String](problemset/first_unique_character_in_a_string/main.go)
- [Find the Difference](problemset/find_the_difference/main.go)
- [Linked List Cycle II](problemset/linked_list_cycle_ii/main.go)
- [Remove Duplicates from Sorted List II](problemset/remove_duplicates_from_sorted_list_ii/main.go)
- [Unique Email Addresses](problemset/unique_email_addresses/main.go)
- [Is Subsequence](problemset/is_subsequence/main.go)
- [Sum of Left Leaves](problemset/sum_of_left_leaves/main.go)
- [Longest Palindrome](problemset/longest_palindrome/main.go)
- [Convert a Number to Hexadecimal](problemset/convert_a_number_to_hexadecimal/main.go)
- [Fizz Buzz](problemset/fizz_buzz/main.go)
- [Third Maximum Number](problemset/third_maximum_number/main.go)
- [Number of Segments in a String](problemset/number_of_segments_in_a_string/main.go)
- [Find All Numbers Disappeared in an Array](problemset/find_all_numbers_disappeared_in_an_array/main.go)
- [Number Complement](problemset/number_complement/main.go)
- [Island Perimeter](problemset/island_perimeter/main.go)
- [License Key Formatting](problemset/license_key_formatting/main.go)
- [Max Consecutive Ones](problemset/max_consecutive_ones/main.go)
- [Construct the Rectangle](problemset/construct_the_rectangle/main.go)
- [Next Greater Element I](problemset/next_greater_element_i/main.go)
- [Keyboard Row](problemset/keyboard_row/main.go)
- [Base 7](problemset/base_7/main.go)
- [Relative Ranks](problemset/relative_ranks/main.go)
- [Fibonacci Number](./problemset/fibonacci_number/main.go)
- [Perfect Number](./problemset/perfect_number/main.go)
- [Detect Capital](./problemset/detect_capital/main.go)
- [Minimum Absolute Difference in BST](./problemset/minimum_absolute_difference_in_bst/main.go)
- [Reverse String II](./problemset/reverse_string_ii/main.go)
- [Diameter of Binary Tree](./problemset/diameter_of_binary_tree/main.go)
- [Student Attendance Record I](./problemset/student_attendance_record_i/main.go)
- [Reverse Words in a String III](./problemset/reverse_words_in_a_string_iii/main.go)
- [Maximum Depth of N-ary Tree](./problemset/maximum_depth_of_n_ary_tree/main.go)
- [N-ary Tree Preorder Traversal](./problemset/n_ary_tree_preorder_traversal/main.go)
- [N-ary Tree Postorder Traversal](./problemset/n_ary_tree_postorder_traversal/main.go)
- [Array Partition I](./problemset/array_partition_i/main.go)
- [Reshape the Matrix](./problemset/reshape_the_matrix/main.go)
- [Remove Duplicates from Sorted List](./problemset/remove_duplicates_from_sorted_list/main.go)
- [Add Two Numbers](./problemset/add_two_numbers/main.go)
- [Longest Substring Without Repeating Characters](./problemset/longest_substring_without_repeating_characters/main.go)
- [Maximum Product of Three Numbers](./problemset/maximum_product_of_three_numbers/main.go)
- [Longest Word in Dictionary through Deleting](./problemset/longest_word_in_dictionary_through_deleting/main.go)
- [Longest Uncommon Subsequence I](./problemset/longest_uncommon_subsequence_i/main.go)
- [Intersection of Two Linked Lists](./problemset/intersection_of_two_linked_lists/main.go)
- [Average of Levels in Binary Tree](./problemset/average_of_levels_in_binary_tree/main.go)