Skip to content

Commit d16fb68

Browse files
committed
update
1 parent 064fc9c commit d16fb68

File tree

7 files changed

+2
-60
lines changed

7 files changed

+2
-60
lines changed
1.83 MB
Binary file not shown.

binary-search-tree-1-insertion/binary-search-tree-1-insertion.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func New(data int) *Node {
3232
func Search(root *Node, key int) *Node {
3333
//1. Base Cases: root is null or key is present at root
3434
if root == nil || root.data == key {
35-
fmt.Println("The given previous node cannot be NULL")
35+
//fmt.Println("The given previous node cannot be NULL")
3636
return root
3737
}
3838

binary-tree-1-introduction/binary-tree-1-introduction.go

-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ func New(data int) *Node {
2929
}
3030

3131
func main() {
32-
3332
//To allocate dynamically a new Node in C language : root = (struct Node*) malloc(sizeof(struct Node));
3433
root := New(1)
3534
/*
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package main

stack-reverse/stack-reverse.go

-56
This file was deleted.

stack-1-introduction/stack-1-introduction.go renamed to stack/stack.go

-2
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ func Pop(stack *Stack) int {
6161
}
6262

6363
func main() {
64-
6564
stack := New(100)
6665

6766
Push(stack, 10)
@@ -72,5 +71,4 @@ func main() {
7271
fmt.Println("Pushed to stack : 30")
7372

7473
fmt.Printf("Popped from stack : %d", Pop(stack))
75-
7674
}

0 commit comments

Comments
 (0)