I hereby claim:
- I am vprasanth on github.
- I am vprasanth (https://keybase.io/vprasanth) on keybase.
- I have a public key ASBhwov88hY2cc56hg19LfWWu5HKRTPpiJlfcugAvajcWgo
To claim this, I am signing this object:
/* | |
We want to build a rate limiter system for a frontend which receives requests | |
at whole seconds. Assume we have all the requests over an interval of time | |
represented as an array, e.g., requests = [0,0,1,1,1,2,2] The index is the | |
reauest ID and the value is the time stamp. | |
Design a rate limiter that can enforce a limit of Q requests per T seconds. | |
The output should return the timestamp of dropped requests as well as the | |
request IDS. |
// https://leetcode.com/problems/group-anagrams/description/ | |
function groupAnagrams(strs: string[]): string[][] { | |
if (!strs) return [[]]; | |
if (strs.length === 1) return [strs]; | |
const sorted = strs.map(word => { | |
return word.split("").sort().join(""); | |
}); | |
const realMap = new Map(); |
{"_type":"export","__export_format":4,"__export_date":"2021-07-23T21:27:15.001Z","__export_source":"insomnia.desktop.app:v2021.4.1","resources":[{"_id":"req_08deb1dba8b64159afbb28a856fcdf58","parentId":"fld_6dfab177c1ec436cb52ec756c12233f7","modified":1626054833254,"created":1625821981253,"url":"{{ _.BASE_PATH }}:{{ _.PORT }}/api/v1/context/public/{{ _.A_DEMO_NAME }}","name":"Get public creds","description":"","method":"GET","body":{},"parameters":[],"headers":[{"id":"pair_4b5df0057ec2487a8d2f91b7ac450432","name":"Authorization","value":"Bearer {{ _.TOKEN }}","description":""},{"id":"pair_61cb2a33056343a9ad4af403fefe8027","name":"Accept","value":"application/json","description":""}],"authentication":{},"metaSortKey":-1625812288445.5,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"fld_6dfab177c1ec436cb52ec756c12233f7","parentId":"wrk_c45e1 |
I hereby claim:
To claim this, I am signing this object:
// iffe | |
(function() { | |
'use strict'; | |
const nav = [ | |
{ | |
element: '#home-button', | |
target: '#scroll-to-home' | |
}, | |
{ |
# my docker functions | |
dps () { | |
docker ps; | |
} | |
dstop () { | |
docker stop $1; | |
} |