This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>FCC Tribute Page | Dr. A. P. J. Abdul Kalam</title> | |
</head> | |
<body> | |
<main id="main"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "errors" | |
type Stack interface { | |
IsEmpty() bool | |
Peek() int | |
Pop() error | |
Push(x int) error | |
Dump() []int |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
type Queue interface { | |
Size() int | |
IsEmpty() bool | |
Enqueue(v interface{}) | |
Dequeue() interface{} | |
} | |
type node struct { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
type node struct { | |
value interface{} | |
next *node | |
} | |
type Stack interface { | |
Size() int | |
IsEmpty() bool |