Skip to content

LuaanNguyen/go-leetcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Daily LeetCode Solutions in Go ✏️

This repository contains my solutions to LeetCode problems in Go.

Go

Folder Structure 🗂️

  • easy/: Easy level problems.
  • medium/: Medium level problems.
  • hard/: Hard level problems.

Unit Testing 🧪

In your root direction, run:

go test ./...

If you only want to run tests in a specific problem (e.g., ./easy/0001_two_sum), run:

go test ./easy/0001_two_sum

Solutions (Continue Updating...)

Leetcode ID Title & Solution Coefficient Of Difficulty Remarks
0001 Two Sum Easy HashTable Array
0392 Is Subsequence Easy Two Pointers String
3042 Count Prefix and Suffix Pairs I Easy Array String
2185 Counting Words With a Given Prefix Easy Array String String Matching
1400 Construct K Palindrome Strings Medium HashTable String Greedy Counting
2116 Check if a Parentheses String Can Be Valid Medium Stack String Greedy
3223 Minimum Length of String After Operations Medium HashTable String Counting
2657 Find the Prefix Common Array of Two Arrays Medium HashTable Array
2429 Minimize XOR Medium Bit Manipulation
2425 Bitwise XOR of All Pairings Medium Bit Manipulation Brain Teaser

License 🪪

MIT License
Copyright (c) 2025 Luan Nguyen

Releases

No releases published

Packages

No packages published

Languages