Skip to content

Prepare For Coder Interview – Denny

  • Basic
  • Medium
  • Hard
  • Architect
  • Life

Tag: reservoirsampling

LeetCode: Random Pick Index

Posted on August 6, 2018July 26, 2020 by braindenny

Random Pick Index


Continue reading “LeetCode: Random Pick Index”

Posted in MediumTagged reservoirsamplingLeave a Comment on LeetCode: Random Pick Index

LeetCode: Shuffle an Array

Posted on March 15, 2018July 26, 2020 by braindenny

Shuffle an Array


Continue reading “LeetCode: Shuffle an Array”

Posted in MediumTagged fisheryatesshuffle, oodesign, random, reservoirsamplingLeave a Comment on LeetCode: Shuffle an Array

LeetCode: Linked List Random Node

Posted on March 15, 2018July 26, 2020 by braindenny

Linked List Random Node


Continue reading “LeetCode: Linked List Random Node”

Posted in AmusingTagged reservoirsamplingLeave a Comment on LeetCode: Linked List Random Node

LeetCode: Insert Delete GetRandom O(1)

Posted on January 10, 2018July 26, 2020 by braindenny

Design a data structure that supports reqiured operations in O(1) time.


Continue reading “LeetCode: Insert Delete GetRandom O(1)”

Posted in AmusingTagged oodesign, random, reservoirsamplingLeave a Comment on LeetCode: Insert Delete GetRandom O(1)

Tags

#array #backtracking #bfs #binarytree #bitmanipulation #blog #classic #codetemplate #combination #dfs #dynamicprogramming #game #graph #greedy #heap #inspiring #interval #linkedlist #manydetails #math #palindrome #recursive #slidingwindow #stack #string #subarray #trie #twopointer #twosum binarysearch editdistance hashmap intervaldp knapsack monotone oodesign presum rectangle redo review rotatelist series sql treetraversal unionfind

Recent Posts

  • a
  • a
  • a
  • a
  • a

Recent Comments

    Archives

    Categories

    • Amusing
    • Basic
    • Easy
    • Hard
    • Life
    • Medium
    • Resource
    • Review
    • Series
    • Uncategorized
    Proudly powered by WordPress | Theme: petals by Aurorum.