题目描述 Given two strings s and t, write a function to determine if t is an anagram of s. For example, s = “anagr…
分类:LeetCode题目解答
229. Majority Element II
Given an integer array of size n, find all elements that appear more than ⌊ n/3 ⌋ times.Note: The algorithm sh…
103. Binary Tree Zigzag Level Order Traversal
欢迎fork and star:Nowcoder-Repository-github 103. Binary Tree Zigzag Level Order Traversal 题目 Given a binary tre…
104. Maximum Depth of Binary Tree
104. Maximum Depth of Binary Tree 题目 Given a binary tree, find its maximum depth. The maximum depth is the num…
[LeetCode] Evaluate Division 求除法表达式的值
Equations are given in the format A / B = k, where A and B are variables repre…
29. Divide Two Integers
欢迎fork and star:Nowcoder-Repository-github 29. Divide Two Integers 题目 Divide two integers without using multip…
101. Symmetric Tree
欢迎fork and star:Nowcoder-Repository-github 101. Symmetric Tree 题目 Given a binary tree, check whether it is a m…
[LeetCode] Remove Linked List Elements 移除链表元素
Remove all elements from a linked list of integers that have value val. Example Given: 1 –> 2 …
LeetCode 220 Contains Duplicate III
题目描述 Given an array of integers, find out whether there are two distinct indices i and j in the array such tha…
13. Roman to Integer
欢迎fork and star:Nowcoder-Repository-github 13. Roman to Integer 题目 Given a roman numeral, convert it to an int…
[LeetCode] Word Break II 拆分词句之二,Word Break 拆分词句
Given a non-empty string s and a dictionary wordDict containing a list of…
LeetCode 283 Move Zeroes
题目描述 Given an array nums, write a function to move all 0’s to the end of it while maintaining the relative ord…