- 博客(5)
- 资源 (1)
- 收藏
- 关注
原创 【LeetCode】238. 除去自身后,数组各项的乘积
问题描述 Given an array nums of n integers where n > 1, return an array output such that output[i] is equal to the product of all the elements of nums except nums[i]. Constraint: It's guaranteed tha...
2020-04-16 14:11:42 307
原创 【LeetCode】347. 前K个频繁出现的元素
问题描述 Given a non-empty array of integers, return thekmost frequent elements. Note: You may assumekis always valid, 1 ≤k≤ number of unique elements. Your algorithm's time complexitymust beb...
2020-04-08 14:34:45 275
原创 【LeetCode】647. 回文子串
问题描述 Given a string, your task is to count how many palindromic substrings in this string. The substrings with different start indexes or end indexes are counted as different substrings even they co...
2020-04-08 14:05:50 305
原创 【LeetCode】46. 排列
问题描述 Given a collection ofdistinctintegers, return all possible permutations. 给定一组不同的整数,返回所有可能的排列。 输入: [1,2,3] 输出: [ [1,2,3], [1,3,2], [2,1,3], [2,3,1], [3,1,2], [3,2,1] ] Python...
2020-04-05 10:49:14 125
原创 【LeetCode】22. 生成括号
问题描述 Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses. 给定n对括号,编写一个函数来生成所有形式良好的括号组合。 比如,给定 n = 3,则输出结果应为: [ "((()))", "(()())", "(())()"...
2020-04-05 10:47:00 175
时间轮算法+延时队列实现任务队列Java Demo
2022-10-22
vatic-install.sh
2020-03-02
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人