Skip to content

Instantly share code, notes, and snippets.

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

Satyam Raj stym06

🏠
Working from home
  • India
View GitHub Profile
@stym06
stym06 / LRUCacheWithTTL.java
Created October 17, 2024 18:53
LRU Cache with TTL
// "static void main" must be defined in a public class.
class Node {
public int key;
public int value;
public Node prev;
public Node next;
public Node(int key, int value) {
this.key = key;
@stym06
stym06 / REQUIREMENTS.md
Created July 10, 2023 20:21
E-Commerce Store Requirements

Requirements Document: E-commerce Store

Pages and Flow

The e-commerce store will consist of the following pages and their respective flow:

  • Home Page
  • Product Listing Page
  • Product Details Page
  • Shopping Cart
  • Checkout
  • Order Confirmation
@stym06
stym06 / CacheStore.java
Last active September 12, 2022 15:31
CacheStore implementation in Java using Google's Guava library
import com.google.common.cache.Cache;
import com.google.common.cache.CacheBuilder;
import lombok.extern.slf4j.Slf4j;
import java.util.concurrent.TimeUnit;
@Slf4j
public class CacheStore<T> {
private final Cache<String, T> cache;
@stym06
stym06 / Board.java
Created March 2, 2022 18:09
Snakes & Ladders Java
package com.personal.snakeladder.model;
import lombok.Getter;
import lombok.extern.slf4j.Slf4j;
import java.util.ArrayList;
import java.util.List;
@Slf4j