最新 最热

Algorithem_PermutationInString

Given two strings s1 and s2, return true if s2 contains a permutation of s1, or false otherwise.

2022-04-24
1

Algorithem_ReverseLinkedList

Given the head of a singly linked list, reverse the list, and return the reversed list.

2022-04-23
1

Algorithem_Populating Next Right Pointers in Each Node

You are given a perfect binary tree where all leaves are on the same level, and every parent has two children. The binary tree has the following definition:

2022-04-21
1

Algorithem_Merge Two Binary Trees

You are given two binary trees root1 and root2.

2022-04-21
1

Algorithem_Depth-First Search

Given a string s, find the length of the longest substring without repeating characters.

2022-04-19
1

Algorithem_TwoPointersOfLinked List

Given the head of a singly linked list, return the middle node of the linked list.

2022-04-18
1

Algorithem_ReverseWords

Given a string s, reverse the order of characters in each word within a sentence while still preserving whitespace and initial word order.

2022-04-15
1

Algorithem_ReverseArray

Given an array, rotate the array to the right by k steps, where k is non-negative.

2022-04-15
1

Algorithem_TwoPointers

Given a 1-indexed array of integers numbers that is already sorted in non-decreasing order, find two numbers such that they add up to a specific target number. ...

2022-04-15
1

Algorithem_MoveZeros

Given an integer array nums, move all 0's to the end of it while maintaining the relative order of the non-zero elements.

2022-04-15
1