GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — leetcode-1/java/933_Number_of_Recent_Calls.java at master · FightingSuperYan/leetcode-1 Expand file tree/ Copy path933_Number_of_Recent_Calls.javaMore file actions 13 lines (12 loc) · 248 Bytes / Copy path933_Number_of_Recent_Calls.javaFile metadata and controls13 lines (12 loc) · 248 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 class RecentCounter { Queue<Integer> q; public RecentCounter() { q = new LinkedList(); } public int ping(int t) { q.add(t); while (q.peek() < t - 3000) q.poll(); return q.size(); } } |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |