题目英文描述:Given a string, find the length of the longest substring without repeating chara...
题目英文描述:Given a string, find the length of the longest substring without repeating chara...
题目英文描述:Count the number of prime numbers less than a non-negative number, n. 题目中文描述:统计所...
题目英文描述:Reverse bits of a given 32 bits unsigned integer. 题目中文描述:颠倒给定的 32 位无符号整数的二进制位。 代...
题目英文描述:Given an array, rotate the array to the right by k steps, where k is non-negativ...
题目英文描述:Given an array of size n, find the majority element. The majority element is the...
题目英文描述:Given a positive integer, return its corresponding column title as appear in an ...
题目英文描述:You are climbing a stair case. It takes n steps to reach to the top.Each time yo...
题目英文描述:Write a program to find the node at which the intersection of two singly linked ...
题目英文描述:Given a linked list, determine if it has a cycle in it. To represent a cycle in ...
题目英文描述:Given a non-empty array of integers, every element appears twice except for one....
题目英文描述:Say you have an array prices for which the ith element is the price of a given s...
题目英文描述:Given a binary tree, determine if it is height-balanced.For this problem, a heig...
题目英文描述:Given a binary tree, check whether it is a mirror of itself (ie, symmetric aroun...
题目英文描述:Given two binary trees, write a function to check if they are the same or not. T...
题目英文描述:Given two binary strings, return their sum (also a binary string). The input str...
题目英文描述:Given a sorted array nums, remove the duplicates in-place such that each element...
题目英文描述:Write a function to find the longest common prefix string amongst an array of st...
只有在必要时才使用后置操作符因为前置操作需要做的工作更少,只需要加1后返回加1后的结果即可。而后置操作符则必须先保存操作数原来的值,以便返回未加1之前的值作为操作的结果。对于...
字典排序算法四步法:字典排序:第一步:从右至左找第一个左邻小于右邻的数,记下位置i,值list[a]第二部:从右边往左找第一个右边大于list[a]的第一个值,记下位置j,值...
std::minmax_element(C++11) 函数原型: 返回的是两个迭代器组成的 pair。 使用示例: std::min_element(C++17) 函数原型:...