freeCookie


freeCookie_🍪

LC432. All O`one Data Structure

Design a all O(1) time data structure

LC432. All O`one Data Structure Implement a data structure supporting the following operations: Inc(Key) - Inserts a new key with value 1. Or ...

LC244. Shortest Word Distance II

Follow up of Shortest Word Distance.

LC244. Shortest Word Distance II This is a follow up of Shortest Word Distance. The only difference is now you are given the list of words and you...

HTML, CSS, and Javascript for Web Developers Week1

Basics and environment setup.

Basics knowledges and environment set-up 一时兴起想学学web development, 随便找来一门课来听听,大概是觉得以后可能不会选Web development这门课了吧… Source code and examples and sli...

Leetcode - Path Sum problems

LC112, LC113, LC437

LC112. Path Sum Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equ...

LC236. Lowest Common Ancestor of a Binary Tree

LCA of two given nodes in the tree.

LC236. Lowest Common Ancestor of a Binary Tree Given a binary tree, find the lowest common ancestor (LCA) of two given nodes in the tree. Accordi...

LC170. Two Sum III - Data structure design

LC170. Two Sum III - Data structure design Design and implement a TwoSum class. It should support the following operations: add and find. add - A...

LC156. Binary Tree Upside Down

Reverse a binary tree

LC156. Binary Tree Upside Down Given a binary tree where all the right nodes are either leaf nodes with a sibling (a left node that shares the sam...

Java访问权限 & 关键字

public/private/protected...

Java成员访问权限 & 关键字 突然发现不是很明白它们的区别和含义😱 Access Specifiers 访问权限修饰符 Access Specifiers 中文参考   Class 类内 Package 包...