Skip to content

Instantly share code, notes, and snippets.

View leyonh's full-sized avatar
😀

Liyong Wang leyonh

😀
View GitHub Profile
@leyonh
leyonh / nginx
Created March 18, 2016 06:07 — forked from Eric-Guo/nginx
Openresty init.d script
#!/bin/sh
#
# chkconfig: 2345 55 25
# Description: Nginx init.d script, put in /etc/init.d, chmod +x /etc/init.d/nginx
# For Debian, run: update-rc.d -f nginx defaults
# For CentOS, run: chkconfig --add nginx
# if report exist, running update-rc.d -f nginx remove first
#
### BEGIN INIT INFO
# Provides: nginx
@leyonh
leyonh / grokking_to_leetcode.md
Created July 25, 2022 15:21 — forked from tykurtz/grokking_to_leetcode.md
Grokking the coding interview equivalent leetcode problems

GROKKING NOTES

I liked the way Grokking the coding interview organized problems into learnable patterns. However, the course is expensive and the majority of the time the problems are copy-pasted from leetcode. As the explanations on leetcode are usually just as good, the course really boils down to being a glorified curated list of leetcode problems.

So below I made a list of leetcode problems that are as close to grokking problems as possible.

Pattern: Sliding Window