Code Snippets

This class was created by Brainscape user Shaz R.

By:

Decks in this class (19)

Dynamic Programming
Check if substring from indices i...,
You have intercepted a secret mes...,
Longest increasing subsequence 3
23  cards
Two pointers and variants
Two sum input array not sorted 1,
Two sum ii input array is sorted 2,
3sum given an integer array nums ...
10  cards
Linked Lists
Merge two sorted lists l1 and l2 1,
Given the head of a linked list r...,
Find middle of linked list 2
7  cards
Intervals
Meeting rooms i given an array of...,
Meeting rooms ii given an array o...,
Maximum number of events that can...
7  cards
Directed Graph
Djikstra s algo to find shortest ...,
Course schedule there are a total...,
Blank 3
3  cards
Quick sort/select
Quick select finds kth smallest e...,
Quick select partition function 2,
Blank 3
3  cards
Union Graph
Number of islands given an m x n ...,
Number of islands ii 2
2  cards
Sliding Window
Longest substring without repeati...,
Sliding window maximum 2,
Minimum window substring 3
4  cards
Stack
Min stack design a stack that sup...,
Given a string s containing just ...,
Decode string given an encoded st...
7  cards
Array
Degree of an array given a non em...,
Minimize maximum pair sum in array 2,
Earliest possible day of full blo...
3  cards
Heap
Given an integer array nums and a...,
Kth largest element in an array 2,
Blank 3
3  cards
Binary Search
Sqrt x given a non negative integ...,
Koko eating bananas koko loves to...,
Find floor of a target in a given...
5  cards
Backtracking
Given an array nums of distinct i...,
Generate parentheses given n pair...
2  cards
Tree
A trie pronounced as try or prefi...,
Kth smallest element in a bst 2,
Subtree of another tree 3
8  cards
Random
Convert a non negative integer nu...,
Longest consecutive sequence 2,
Repeated substring pattern 3
13  cards
Matrix
Nearest exit from entrance in maze 1,
Spiral matrix given an m x n matr...
2  cards
Prefix Sum
Find pivot index given an array o...,
Count vowel strings in ranges 2
2  cards
Bit manipulation
Binary gap given a positive integ...,
Count pairs of points with distan...
2  cards
Greedy
Boats to save people you are give...
1  cards

More about
Code Snippets

  • Class purpose General learning

The creator of this class did not yet add a description for what is included in this class.

How studying works.

Brainscape's adaptive web mobile flashcards system will drill you on your weaknesses, using a pattern guaranteed to help you learn more in less time.

Add your own flashcards.

Either request "Edit" access from the author, or make a copy of the class to edit as your own. And you can always create a totally new class of your own too!

What's Brainscape anyway?

Brainscape is a digital flashcards platform where you can find, create, share, and study any subject on the planet.

We use an adaptive study algorithm that is proven to help you learn faster and remember longer....