Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions articles/binary-tree-diameter.md
Original file line number Diff line number Diff line change
Expand Up @@ -925,6 +925,8 @@ public class Solution {
```

```go
import "github.com/a234567894/gods/stacks/linkedliststack"

/**
* Definition for a binary tree node.
* type TreeNode struct {
Expand Down
2 changes: 2 additions & 0 deletions articles/minimum-stack.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,8 @@ public class MinStack {
```

```go
import "github.com/a234567894/gods/stacks/linkedliststack"

type MinStack struct {
stack *linkedliststack.Stack
}
Expand Down
2 changes: 2 additions & 0 deletions articles/trapping-rain-water.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions articles/validate-parentheses.md
Original file line number Diff line number Diff line change
Expand Up @@ -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{')': '(', ']': '[', '}': '{'}
Expand Down