Skip to content

Instantly share code, notes, and snippets.

View mrduckieduck's full-sized avatar
🦆
Coding like a duck!

Daniel Castillo mrduckieduck

🦆
Coding like a duck!
View GitHub Profile
package dev.mrpato;
import java.util.*;
/**
* Design a data structure that follows the constraints of a Least Recently Used (LRU) cache.
* <p>
* Problem: https://leetcode.com/problems/lru-cache
*/
public class LRUCache {
@mrduckieduck
mrduckieduck / .gitconfig
Last active March 22, 2022 22:38
My configuration for git, with all the useful alias
color]
ui = auto
[alias]
# short aliases
st = status
co = checkout
cob = checkout -b
ci = commit
cia = commit -a