Skip to content

Instantly share code, notes, and snippets.

View ken8203's full-sized avatar
💫

jaychung ken8203

💫
View GitHub Profile
@ken8203
ken8203 / grokking_to_leetcode.md
Created October 25, 2022 13:40 — 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

let config = {
path: `/to/your/path/${dir}`
}
export default config
<?php
require __DIR__ . '/src/Request/BaseRequest.php';
use GuzzleHttp\Client;
use PrioriData\Request\BaseRequest;
$request = new BaseRequest();
echo $request->getBaseUri();
{
"name": "shannywu/lib-priori-data",
"description": "a library to access priori data api",
"type": "library",
"license": "proprietary",
"authors": [
{
"name": "KKBOX Engineer",
"email": "[email protected]"
}
values = [
(0.1, 'a'),
(0.004, 'c'),
(0.59643590, 'd'),
(100, 'k')
]
values.sort(key=lambda x: x[0])
print values
@ken8203
ken8203 / xauth.py
Last active March 10, 2017 08:59
xAuth using Python
import json, urlparse
import oauth2 as oauth
from urllib import urlencode
consumer_key = 'consumer_key_here'
consumer_secret = 'consumer_secret_here'
access_token_url = 'https://emma.pixnet.cc/oauth/access_token'
consumer = oauth.Consumer(consumer_key, consumer_secret)