Skip to content

Instantly share code, notes, and snippets.

View sundaram2021's full-sized avatar
🎯
Focusing

Sundaram Kumar Jha sundaram2021

🎯
Focusing
View GitHub Profile
@sundaram2021
sundaram2021 / trees.go
Created June 7, 2025 05:53
A Collection of tree algorithms and important questions
package main
import "fmt"
// TreeNode definition
type TreeNode struct {
Val int
Left *TreeNode
Right *TreeNode
}
@sundaram2021
sundaram2021 / linked_list.go
Created June 7, 2025 05:47
A Collection Linked List Algorithms and questions
package main
import (
"container/list"
"fmt"
)
// ListNode Definition
type ListNode struct {
Val int
@sundaram2021
sundaram2021 / strings.go
Created June 7, 2025 05:37
A Collection of Essential string algorithms and questions in Golang
package main
import (
"fmt"
"strings"
"unicode"
)
// 1. Longest Common Prefix
@sundaram2021
sundaram2021 / array.go
Created June 6, 2025 15:05
A Collection of Essential Go Array Algorithms
package main
import (
"fmt"
"sort"
)
func insertionSort(arr []int) {
for i := 1; i < len(arr); i++ {