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 October 21, 2020October 21, 2020
  • Design

LeetCode 359. Logger Rate Limiter

Description https://leetcode.com/problems/logger-rate-limiter/ Design a logger system that receive stream of messages along with its timestamps, each message should be printed…

Continue Reading
  • Posted on October 5, 2020January 5, 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, 2020July 19, 2020
  • 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 (5)
  • LeetCode (185)
    • Array (40)
    • Backtracking (9)
    • Binary Search (11)
    • Binary Tree (20)
    • Bit Manipulation (4)
    • Depth First Search (7)
    • Design (4)
    • Dynamic Programming (13)
    • Graph (3)
    • Linked List (13)
    • Math (16)
    • Sorting (5)
    • Stack (8)
    • String (23)
    • Two Pointers (10)
    • Union Find (2)
  • Machine Learning (7)
  • Technical Solutions (2)
  • Useful (2)
© Copyright 2021 – GoodTecher
Cell Theme by DesignOrbital ⋅ Powered by WordPress