<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Class Design on Vhaos&#39;s Leetcode Solutions</title>
    <link>https://vhaos-leetcode-solutions.now.sh/tags/class-design/</link>
    <description>Recent content in Class Design on Vhaos&#39;s Leetcode Solutions</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <copyright>Kareem Daggash</copyright>
    <lastBuildDate>Thu, 01 Oct 2020 01:00:52 +0100</lastBuildDate>
    
	<atom:link href="https://vhaos-leetcode-solutions.now.sh/tags/class-design/index.xml" rel="self" type="application/rss+xml" />
    
    
    <item>
      <title>Number of Recent Calls</title>
      <link>https://vhaos-leetcode-solutions.now.sh/leetcodedaily/october/1-number-of-recent-calls/</link>
      <pubDate>Thu, 01 Oct 2020 01:00:52 +0100</pubDate>
      
      <guid>https://vhaos-leetcode-solutions.now.sh/leetcodedaily/october/1-number-of-recent-calls/</guid>
      <description>LeetCode October - Day 1 Problem Statement You have a RecentCounter class which counts the number of recent requests within a certain time frame.
Implement the RecentCounter class:
 RecentCounter() Initializes the counter with zero recent requests. int ping(int t) Adds a new request at time t, where t represents some time in milliseconds, and returns the number of requests that has happened in the past 3000 milliseconds (including the new request).</description>
    </item>
    
    <item>
      <title>Implement Rand10 Using Rand</title>
      <link>https://vhaos-leetcode-solutions.now.sh/leetcodedaily/august/28-implement-rand10-using-rand7/</link>
      <pubDate>Fri, 28 Aug 2020 01:00:52 +0100</pubDate>
      
      <guid>https://vhaos-leetcode-solutions.now.sh/leetcodedaily/august/28-implement-rand10-using-rand7/</guid>
      <description>LeetCode August - Day 28 Problem Statement Given the API rand7() that generates a uniform random integer in the range [1, 7], write a function rand10() that generates a uniform random integer in the range [1, 10]. You can only call the API rand7(), and you shouldn&amp;rsquo;t call any other API. Please do not use a language&amp;rsquo;s built-in random API.
Each test case will have one internal argument n, the number of times that your implemented function rand10() will be called while testing.</description>
    </item>
    
    <item>
      <title>Stream of Characters</title>
      <link>https://vhaos-leetcode-solutions.now.sh/leetcodedaily/august/23-stream-of-characters/</link>
      <pubDate>Sun, 23 Aug 2020 01:00:52 +0100</pubDate>
      
      <guid>https://vhaos-leetcode-solutions.now.sh/leetcodedaily/august/23-stream-of-characters/</guid>
      <description>LeetCode August - Day 23 Problem Statement Implement the StreamChecker class as follows:
 StreamChecker(words): Constructor, init the data structure with the given words. query(letter): returns true if and only if for some k &amp;gt;= 1, the last k characters queried (in order from oldest to newest, including this letter just queried) spell one of the words in the given list.  Example:
StreamChecker streamChecker = new StreamChecker([&amp;quot;cd&amp;quot;,&amp;quot;f&amp;quot;,&amp;quot;kl&amp;quot;]); // init the dictionary.</description>
    </item>
    
    <item>
      <title>Iterator for Combination</title>
      <link>https://vhaos-leetcode-solutions.now.sh/leetcodedaily/august/13-iterator-for-combination/</link>
      <pubDate>Thu, 13 Aug 2020 01:00:52 +0100</pubDate>
      
      <guid>https://vhaos-leetcode-solutions.now.sh/leetcodedaily/august/13-iterator-for-combination/</guid>
      <description>LeetCode August - Day 13 Problem Statement Design an Iterator class, which has:
 A constructor that takes a string characters of sorted distinct lowercase English letters and a number combinationLength as arguments. A function next() that returns the next combination of length combinationLength in lexicographical order. A function hasNext() that returns True if and only if there exists a next combination.  Example:
// creates the iterator. CombinationIterator iterator = new CombinationIterator(&amp;#34;abc&amp;#34;, 2); iterator.</description>
    </item>
    
  </channel>
</rss>