Skip to content

Instantly share code, notes, and snippets.

View aparajita31pandey's full-sized avatar
🎯
Focusing

Aparajita Pandey aparajita31pandey

🎯
Focusing
View GitHub Profile
@aparajita31pandey
aparajita31pandey / SkipList
Last active March 30, 2024 12:49
Redis Sorted Set: Skip List Implemented with span
import java.util.*;
class SkipListNode {
int value;
SkipListNode[] forwards;
public SkipListNode(int value, int level) {
this.value = value;
forwards = new SkipListNode[level + 1];
}
@aparajita31pandey
aparajita31pandey / mylexer.go
Last active March 4, 2024 16:52
This implements REPL that tokenizes the given source code and print token.
package main
import (
"bufio"
"fmt"
"os"
"os/user"
)
type Token struct {
@aparajita31pandey
aparajita31pandey / LoadBalancer.go
Last active November 13, 2023 07:58
Simple Load Balancer which uses RoundRobin algorithm to send requests into set of backends .
package main
import (
"fmt"
"io"
"net/http"
)
import "sync"
var (