GoodTecher

Be a Good Techer and Tech for Good. www.goodtecher.com

Skip to content
Menu
  • Home
  • LeetCode
    • Array
    • Binary Search
    • Binary Tree
    • Depth First Search
    • Design
    • Dynamic Programming
    • Linked List
    • Math
    • Stack
    • String
    • Two Pointers
    • Union Find
  • Useful

Category: Design

  • Posted on August 22, 2021August 22, 2021
  • Design

LeetCode 211. Design Add and Search Words Data Structure

Description https://leetcode.com/problems/design-add-and-search-words-data-structure/ Design a data structure that supports adding new words and finding if a string matches any previously added…

Continue Reading
  • Posted on August 15, 2021August 15, 2021
  • Design

LeetCode 535. Encode and Decode TinyURL

Description https://leetcode.com/problems/encode-and-decode-tinyurl/ Note: This is a companion problem to the System Design problem: Design TinyURL. TinyURL is a URL shortening service where you…

Continue Reading
  • Posted on July 18, 2021July 18, 2021
  • Design

LeetCode 981. Time Based Key-Value Store

Description https://leetcode.com/problems/time-based-key-value-store/ Design a time-based key-value data structure that can store multiple values for the same key at different time…

Continue Reading
  • Posted on July 17, 2021July 17, 2021
  • Design

LeetCode 398. Random Pick Index

Description https://leetcode.com/problems/random-pick-index/ Given an integer array nums with possible duplicates, randomly output the index of a given target number. You can assume that the given…

Continue Reading
  • Posted on May 9, 2021May 9, 2021
  • Design

LeetCode 706. Design HashMap

Description https://leetcode.com/problems/design-hashmap/ Design a HashMap without using any built-in hash table libraries. Implement the MyHashMap class: MyHashMap() initializes the object with an empty…

Continue Reading
  • Posted on May 2, 2021May 2, 2021
  • Design

LeetCode 1656. Design an Ordered Stream

Description https://leetcode.com/problems/design-an-ordered-stream/ There is a stream of n (idKey, value) pairs arriving in an arbitrary order, where idKey is an integer between 1 and n and value is a string. No two pairs…

Continue Reading
  • Posted on October 21, 2020November 20, 2021
  • Design

LeetCode 359. Logger Rate Limiter

Description https://leetcode.com/problems/logger-rate-limiter/ Design a logger system that receives a stream of messages along with their timestamps. Each unique message should only be…

Continue Reading
  • Posted on October 5, 2020July 31, 2021
  • Design

LeetCode 208. Implement Trie (Prefix Tree)

Description https://leetcode.com/problems/implement-trie-prefix-tree/ Implement a trie with insert, search, and startsWith methods. Example: Trie trie = new Trie(); trie.insert(“apple”); trie.search(“apple”); // returns true trie.search(“app”); //…

Continue Reading
  • Posted on July 19, 2020November 1, 2021
  • Design

LeetCode 380. Insert Delete GetRandom O(1)

Description https://leetcode.com/problems/insert-delete-getrandom-o1/ Design a data structure that supports all following operations in average O(1) time. insert(val): Inserts an item val to the set…

Continue Reading
  • Posted on April 5, 2020April 5, 2020
  • Design

LeetCode 384. Shuffle an Array

Description https://leetcode.com/problems/shuffle-an-array/ Shuffle a set of numbers without duplicates. Example: // Init an array with set 1, 2, and 3.…

Continue Reading

Follow GoodTecher

Categories

  • HackerRank (1)
  • Interview (7)
  • LeetCode (588)
    • Array (185)
    • Backtracking (18)
    • Binary Search (19)
    • Binary Tree (63)
    • Bit Manipulation (15)
    • Database (40)
    • Depth First Search (6)
    • Design (10)
    • Dynamic Programming (17)
    • Graph (18)
    • Greedy (5)
    • Heap (1)
    • Linked List (26)
    • Math (36)
    • Recursion (3)
    • Sorting (11)
    • Stack (11)
    • String (95)
    • Two Pointers (12)
    • Union Find (2)
  • Machine Learning (7)
  • Technical Solutions (2)
  • Useful (3)
© Copyright 2025 – GoodTecher
Cell Theme by DesignOrbital ⋅ Powered by WordPress