[LeetCode 100] Same Tree [Java]


1. Description Given two binary trees, write a function to check if they are the same or not. Two binary trees are considered the same if they are ...


[LeetCode 79] Word Search [Java]


1. Description Given a 2D board and a word, find if the word exists in the grid. The word can be constructed from letters of sequentially adjacent ...


[LeetCode 78] Subsets [Java]


1. Description Given a set of distinct integers, nums, return all possible subsets (the power set). Note: The solution set must not contain duplica...

[LeetCode 67] Add Binary [Java]


1. Description Given two binary strings, return their sum (also a binary string). 2. Example a = "11" b = "1" Return "100". 3.Code public c...

[LeetCode 66] Plus One [Java]


1. Description Given a non-negative integer represented as a non-empty array of digits, plus one to the integer. You may assume the integer do not ...

[LeetCode 65] Valid Number [Java]


1. Description Validate if a given string is numeric. Note: It is intended for the problem statement to be ambiguous. You should gather all require...