zoomdong

Results 52 issues of zoomdong

一个测试性的ASOC提交QuQ... 现在重构的思路是: - 把原来的 Menu.tsx(Cascader的poplist框)放进去了 `OptionList.tsx` 来作为 generate 所需要的 OptionList - 然后使用 `select`里面的 generate 来生成列表(目前还没有这么处理是因为参数多且混乱...有点不好整理) 目前这个版本因为参数 `props` 太多有点不好打理 以及参考 tree-select 的[提交](https://github.com/react-component/tree-select/pull/197/files) 和 select 的[提交](https://github.com/react-component/select/pull/420/files) 感觉参数有点复杂和自己研究很久没有进展... 先做出了一部分修改(并没有对原文件做出删除操作)...

默认导出一部分那个extend不应该是extends吗?

每次在使用 vue-cli 生成模版的时候,怎么保证这些模版能正常工作呢? 是通过怎么样的测试呢?

```js /** * Definition for a binary tree node. * function TreeNode(val) { * this.val = val; * this.left = this.right = null; * } */ /** * @param {TreeNode}...

典型的dp问题,状态转移方程式为 第i天的最大收益 = max(第i - 1 天的收益,当天的价格 - 之前最小的价格) ```js /** * @param {number[]} prices * @return {number} */ var maxProfit = function(prices) { if(prices.length === 0) { return 0;...

后续待更...

这题开个队列和栈就可以了: ```js var MaxQueue = function() { this.queue = [] this.maxQueue = [] } /** * @return {number} */ MaxQueue.prototype.max_value = function() { return this.queue.length ? this.maxQueue[0] : -1 }...

medium
剑指offer

这题我是用二分写的 = =QAQ: ```js /** * @param {number} target * @return {number[][]} */ var findContinuousSequence = function(target) { let low = 1, high = 2, array = []; while (high...

easy
剑指offer

这题主要还是按照题目意思去模拟就行了,但是js处理最大数字有点麻烦: ```js /** * @param {string} str * @return {number} */ var strToInt = function(str) { let res = 0,i = 0; while(str[i] === ' ' && i= '0' &&...

medium
面试题
剑指offer

按照分糖果的过程去模拟就可以了。 ```js /** * @param {number} candies * @param {number} num_people * @return {number[]} */ var distributeCandies = function(candies, num_people) { let temp = 0; let res = Array(num_people).fill(0); while(candies...

easy
常规题目