码迷,mamicode.com
首页 >  
搜索关键字:humble numbers    ( 7694个结果
子组件 调用父组件方法
这篇文章中介绍了三种方法分别为: 1、子组件通过使用this.emit('xxx') (xxx:是你要调用的方法名,只要方法名不要后面的小括号) 3、父组件把方法名传给子组件,在子组件里调用这个方法 代码如下: 1、子组件通过使用this.$parent.xxx 父组件代码: <template> ...
分类:其他好文   时间:2020-03-19 13:14:23    阅读次数:58
Python 切片
利用python解决问题的过程中,经常会遇到从某个对象中抽取部分值的情况。“切片”操作正是专门用于实现这一目标的有力武器。理论上,只要条件表达式得当,可以通过单次或多次切片操作实现任意目标值切取。切片操作的基本语法比较简单,但如果不彻底搞清楚内在逻辑,也极容易产生错误,而且这种错误有时隐蔽得较深,难 ...
分类:编程语言   时间:2020-03-18 15:52:48    阅读次数:70
关于 JavaScript 中的 reduce() 方法
一、什么是 reduce() ? reduce() 方法对数组中的每个元素执行一个升序执行的 reducer 函数,并将结果汇总为单个返回值 const array1 = [1, 2, 3, 4]; const reducer = (accumulator, currentValue) => acc ...
分类:编程语言   时间:2020-03-16 19:03:00    阅读次数:77
1380. Lucky Numbers in a Matrix
Given a m * n matrix of distinct numbers, return all lucky numbers in the matrix in any order. A lucky number is an element of the matrix such that it ...
分类:其他好文   时间:2020-03-16 09:41:48    阅读次数:34
628. Maximum Product of Three Numbers
问题:求一个数列里三个数相乘的最大值 Input: [1,2,3] Output: 6 Input: [1,2,3,4] Output: 24 Note: 1.The length of the given array will be in range [3,104] and all element ...
分类:其他好文   时间:2020-03-15 13:25:00    阅读次数:53
【List习题】A1051 Pop Sequence
Given a stack which can keep M numbers at most. Push N numbers in the order of 1, 2, 3, ..., N and pop randomly. You are supposed to tell if a given s ...
分类:其他好文   时间:2020-03-14 21:56:52    阅读次数:69
装箱与拆箱
装箱:将基本类型用他们对应的引用类型包装起来 拆箱:将包装类型转换为基本类型 自动拆装箱: Integer i =10; //自动装箱 反编译后代码:integer i = Integer.valueOf(10); int b= i; //自动拆箱 反编译后代码:int b = i.intValue ...
分类:其他好文   时间:2020-03-14 11:09:26    阅读次数:63
[poj1724]Roads
欢迎回来,这里是做图论已经做到疯了的爱上了图论的Darth Victor。没错今天又是图论题,最近一直在刷图论。 题目 N cities named with numbers 1 ... N are connected with one-way roads. Each road has two pa ...
分类:其他好文   时间:2020-03-14 10:59:13    阅读次数:51
两数相加
题目 给出两个 非空 的链表用来表示两个非负的整数。其中,它们各自的位数是按照 逆序 的方式存储的,并且它们的每个节点只能存储 一位 数字。 如果,我们将这两个数相加起来,则会返回一个新的链表来表示它们的和。 您可以假设除了数字 0 之外,这两个数都不会以 0 开头。 示例: 输入:(2 -> 4 ...
分类:其他好文   时间:2020-03-13 21:09:31    阅读次数:73
LeetCode 315. Count of Smaller Numbers After Self(线段树,树状数组)
"题目" 题意:找到数组里每个元素的右边有多少个元素小于当前元素 题解:单点更新,区间查询。线段树或者树状数组都可以。注意要离散化 ...
分类:编程语言   时间:2020-03-13 20:55:32    阅读次数:68
7694条   上一页 1 ... 29 30 31 32 33 ... 770 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!