freeCookie


freeCookie_🍪

LC301. Remove Invalid Parentheses

LC301. Remove Invalid Parentheses Remove the minimum number of invalid parentheses in order to make the input string valid. Return all possible re...

LC291. Word Pattern II

Given a pattern and a string str, find if str follows the same pattern.

LC291. Word Pattern II Given a pattern and a string str, find if str follows the same pattern. Here follow means a full match, such that there is...

LC254. Factor Combinations

Print all possible factors

LC254. Factor Combinations Numbers can be regarded as product of its factors. For example, 8 = 2 x 2 x 2; = 2 x 4. Write a function that tak...

HTML, CSS, and Javascript for Web Developers Week3

Visit with the client & Setup overview Bring examples of other sites to help figure out what they want. Encourage client to use less informat...

LC296. Best Meeting Point

2D finding min distance

LC296. Best Meeting Point A group of two or more people wants to meet and minimize the total travel distance. You are given a 2D grid of values 0 ...

LC255. Verify Preorder Sequence in Binary Search Tree

Giving preorder array of a BST

LC255. Verify Preorder Sequence in Binary Search Tree Given an array of numbers, verify whether it is the correct preorder traversal sequence of a...

LC164. Maximum Gap

O(n) sort

LC164. Maximum Gap Given an unsorted array, find the maximum difference between the successive elements in its sorted form. Try to solve it in li...

HTML, CSS, and Javascript for Web Developers Week2

Cascading Style Sheets Basics

Cascading Style Sheets Basics Anatomy of a CSS rule Selector: { ​ Property1: value1; -> declaration ​ Property2: value2; }. -> in Style...