- 博客(3)
- 收藏
- 关注
原创 【temp】
238. Product of Array Except Self给定长度为 n 的整数数组 nums,其中 n > 1,返回输出数组 output ,其中 output[i] 等于 nums 中除 nums[i] 之外其余各元素的乘积。示例:输入: [1,2,3,4]输出: [24,12,8,6]说明: 请不要使用除法,且在 O(n) 时间复杂度内完成此题。进阶:...
2018-11-06 23:37:01 609
原创 【String】字符串类问题集合
242. Valid Anagram / 有效的字母异位词Given two strings s and t , write a function to determine if t is an anagram of s.给定两个字符串 s 和 t ,编写一个函数来判断 t 是否是 s 的一个字母异位词。Example 1:Input: s = "anagram", t = "...
2018-11-06 16:13:43 215
原创 【Leetcode】【BinarySearch】 4. Median of Two Sorted Arrays
There are two sorted arrays nums1 and nums2 of size m and n respectively.Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)).You may assume nums1 and ...
2018-11-05 19:57:01 227
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人