From 37e3bb35c334d987319425ab0cf4f203790943f6 Mon Sep 17 00:00:00 2001 From: todor-tabakov-wp Date: Mon, 9 Feb 2026 12:37:35 +0200 Subject: [PATCH] Fix undefined: linkedliststack package issue --- articles/binary-tree-diameter.md | 2 ++ articles/minimum-stack.md | 2 ++ articles/trapping-rain-water.md | 2 ++ articles/validate-parentheses.md | 2 ++ 4 files changed, 8 insertions(+) diff --git a/articles/binary-tree-diameter.md b/articles/binary-tree-diameter.md index c06fa959c..3a88a334d 100644 --- a/articles/binary-tree-diameter.md +++ b/articles/binary-tree-diameter.md @@ -925,6 +925,8 @@ public class Solution { ``` ```go +import "github.com/a234567894/gods/stacks/linkedliststack" + /** * Definition for a binary tree node. * type TreeNode struct { diff --git a/articles/minimum-stack.md b/articles/minimum-stack.md index b09f343c9..f40e57fc5 100644 --- a/articles/minimum-stack.md +++ b/articles/minimum-stack.md @@ -222,6 +222,8 @@ public class MinStack { ``` ```go +import "github.com/a234567894/gods/stacks/linkedliststack" + type MinStack struct { stack *linkedliststack.Stack } diff --git a/articles/trapping-rain-water.md b/articles/trapping-rain-water.md index e6da8dc36..ab79402b6 100644 --- a/articles/trapping-rain-water.md +++ b/articles/trapping-rain-water.md @@ -873,6 +873,8 @@ public class Solution { ``` ```go +import "github.com/a234567894/gods/stacks/linkedliststack" + func trap(height []int) int { if len(height) == 0 { return 0 diff --git a/articles/validate-parentheses.md b/articles/validate-parentheses.md index c3dabce5f..1364c233e 100644 --- a/articles/validate-parentheses.md +++ b/articles/validate-parentheses.md @@ -512,6 +512,8 @@ public class Solution { ``` ```go +import "github.com/a234567894/gods/stacks/linkedliststack" + func isValid(s string) bool { stack := linkedliststack.New() closeToOpen := map[rune]rune{')': '(', ']': '[', '}': '{'}