Skip to content

Instantly share code, notes, and snippets.

View codephilosopher's full-sized avatar
🏠
Working from home

codephilosopher

🏠
Working from home
View GitHub Profile
@codephilosopher
codephilosopher / main.go
Created October 24, 2021 08:04
a small gist of double eneded queue
package main
import "fmt"
type Queue struct {
front int
rear int
size int
QArray []int
}
@codephilosopher
codephilosopher / sample.go
Created October 30, 2021 18:27
go exec.Command
package main
import (
"log"
"os"
"os/exec"
)
func main() {
cmd1 := exec.Command("gcc", "-o", "sample", "golang/experiment/sample.c")
@codephilosopher
codephilosopher / recursion.go
Created November 20, 2022 07:17
simple recursion
import "fmt"
func main() {
SimpleRecursion(3)
}
func SimpleRecursion(n int) {
if n > 0 {
fmt.Println(n)
SimpleRecursion(n - 1)