Skip to content

Instantly share code, notes, and snippets.

package main
import (
"bytes"
"crypto/sha256"
"fmt"
"math"
"math/big"
"strconv"
"time"
@agambondan
agambondan / concurrency.go
Created April 20, 2023 03:43
This is Example Every Type Concurrency in Go
package main
import (
"fmt"
"sync"
"time"
)
// Goroutines
func goroutine1() {
@agambondan
agambondan / filter_price_&_quantity.go
Last active September 18, 2022 05:22
Filter Item Price And Quantity
package main
import "fmt"
// SolutionFilter is your solution code.
func SolutionFilter(N int, itemList [][]int, M int, query [][]int) {
// Your code starts here.
var count = make([]int, M)
for i := 0; i < M; i++ {
for k := 0; k < N; k++ {