Tümü Yeni

user:thomas kullanıcı tarafından oluşturulan gistler

title:mygist belirtilen isme sahip gistler

filename:myfile.txt belirtilen isimde dosyaları olan gistler

extension:yml belirtilen uzantıya sahip dosyalara sahip gistler

language:go belirtilen dilde dosyaları olan gistler

topic:homelab Verilen konuyla ilgili gist'ler

Kaydol

Giriş


Tümü Yeni Kaydol Giriş

linkjobai

Katıldı 19 hours ago

Yakın zamanda oluşturuldu
En eski oluşturuldu
Yakın zamanda güncellendi
En eski güncellendi
Tüm gistler 1

linkjobai / Design a Hit Counter (LeetCode 362) and How It Scales

0 beğeniler
0 çatallar
1 dosyalar
Son aktivite 19 hours ago
Interview prep notes
interview

Design a Hit Counter (LeetCode 362) and How It Scales

"Design a hit counter that returns the number of hits in the past 5 minutes" starts as a data-structure question and often turns into a mini system design discussion.

Version 1: a queue of timestamps

from collections import deque

class HitCounter:
Daha yeni Daha eski

Opengist tarafından desteklenmektedir ⋅ Load: 15ms⋅

Türkçe
Čeština Deutsch English Español Français Magyar Italiano 日本語 Polski Português Русский Türkçe Українська 中文 繁體中文