Skip to content

Instantly share code, notes, and snippets.

View iamganeshagrawal's full-sized avatar
💻
Coding Mode

Ganesh Agrawal iamganeshagrawal

💻
Coding Mode
View GitHub Profile
@iamganeshagrawal
iamganeshagrawal / stack.go
Created May 24, 2023 13:12
Golang | Stack
package main
type node struct {
value interface{}
next *node
}
type Stack interface {
Size() int
IsEmpty() bool
@iamganeshagrawal
iamganeshagrawal / queue.go
Created May 24, 2023 12:09
Golang | Queue
package main
type Queue interface {
Size() int
IsEmpty() bool
Enqueue(v interface{})
Dequeue() interface{}
}
type node struct {
@iamganeshagrawal
iamganeshagrawal / int.go
Created May 19, 2023 11:50
Golang | Stack
package main
import "errors"
type Stack interface {
IsEmpty() bool
Peek() int
Pop() error
Push(x int) error
Dump() []int
@iamganeshagrawal
iamganeshagrawal / index.html
Last active October 3, 2023 05:52
FCC Tribute Page | Dr. A. P. J. Abdul Kalam
<!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">