暂无搜索历史
在一个长度为 n 的数组 nums 里的所有数字都在 0~n-1 的范围内。数组中某些数字是重复的,但不知道有几个数字重复了,也不知道每个数字重复了几次。请找出...
golang中有规定, switch type 的 case T1 ,类型列表只有⼀个,那么 v := m.(type) 中的 v 的类型就是T1类型。
部门的小leaderC想让我熟悉整个业务,知道来龙去脉,让我从零开始搭建一套环境,也方便开发人员直接在上面进行测试,所以从这周一开始,我的工作就来了。
好久没更新博客文章了,因为自己的目标发生了变化,目前主要在自己搭建的博客以写作调身心和微信公众号写一写文章和对职场的感触。
输入某二叉树的前序遍历和中序遍历的结果,请重建该二叉树。假设输入的前序遍历和中序遍历的结果中都不含重复的数字。
在一个 n * m 的二维数组中,每一行都按照从左到右递增的顺序排序,每一列都按照从上到下递增的顺序排序。请完成一个高效的函数,输入这样的一个二维数组和一个整数...
The count-and-say sequence is a sequence of digit strings defined by the recursi...
Given a sorted array of distinct integers and a target value, return the index i...
Return the index of the first occurrence of needle in haystack, or -1 if needle ...
Given a sorted array nums, remove the duplicates in-place such that each element...
Merge two sorted linked lists and return it as a sorted list. The list should be...
Given a string s containing just the characters '(', ')', '{', '}', '[' and ']',...
Write a function to find the longest common prefix string amongst an array of st...
Given an integer x, return true if x is palindrome integer.
Given a signed 32-bit integer x, return x with its digits reversed. If reversing...
简单题。常规解法(解法1),用两个for循环来做,第一个循环从数组nums下标为0开始遍历,第二个循环从数组下标1开始遍历,如果没找到两数之和的target值,...
扫码关注腾讯云开发者
领取腾讯云代金券