码迷,mamicode.com
首页 >  
搜索关键字:humble numbers    ( 7694个结果
数组(Array)
(1)数组排序及插入元素 1 package JavaEE.JavaBaseExampleTest.Array; 2 3 import java.util.Arrays; 4 /** 5 * 使用sort()方法对Java数组进行排序,及使用 insertElement () 方法向数组插入元素 6 ...
分类:编程语言   时间:2020-02-12 16:15:53    阅读次数:81
Leetcode Notes - 刷题随笔
200. Numbers of Islands *********************** class Solution { // 首先定义四个方向的向量,方便计算矩阵上下左右的位置 final static int [][]dirs = {{-1, 0}, {1, 0}, {0, -1}, { ...
分类:其他好文   时间:2020-02-12 11:16:57    阅读次数:91
[LC] 1007. Minimum Domino Rotations For Equal Row
In a row of dominoes, A[i] and B[i] represent the top and bottom halves of the i-th domino. (A domino is a tile with two numbers from 1 to 6 - one on ...
分类:其他好文   时间:2020-02-11 11:48:25    阅读次数:101
Codeforces 914C
The Travelling Salesman spends a lot of time travelling so he tends to get bored. To pass time, he likes to perform operations on numbers. One such op ...
分类:其他好文   时间:2020-02-11 00:15:05    阅读次数:66
leetcode两数相加
题目描述很清楚,最容易想到的就是从前往后一次相加即可。 题中所给的数据结构描述: 第一次的算法: class Solution { public ListNode addTwoNumbers(ListNode l1, ListNode l2) { ListNode res=new ListNode( ...
分类:其他好文   时间:2020-02-10 22:56:54    阅读次数:120
[LeetCode]1295. Find Numbers with Even Number of Digits
Given an array nums of integers, return how many of them contain an even number of digits. Example 1: Input: nums = [12,345,2,6,7896]Output: 2Explanat ...
分类:其他好文   时间:2020-02-10 17:53:55    阅读次数:65
Python函数中的必选/默认/可变/关键字/命名参数
Python函数中的必选/默认/可变/关键字/命名参数 一、默认参数 n为默认参数,直接赋值 默认参数设置的两个注意事项: 1.必选参数在前,默认参数在后,否则会报错 2.当函数有多个参数时,把变化大的参数放前面,变化小的参数放后面。变化小的参数就可以作为默认参数。 二、可变参数 在python中, ...
分类:编程语言   时间:2020-02-10 11:59:57    阅读次数:91
[Unit Testing] Jasmine Spies
it ('should add two numbers', () => { const logger = jasmine.createSpyObj('LoggerService', ['log']) // logger.log.and.returnValue(); const calculator ...
分类:其他好文   时间:2020-02-10 09:52:34    阅读次数:50
iOS 底层原理 - isa原理
isa初始化 isa的结构 union isa_t { isa_t() { } isa_t(uintptr_t value) : bits(value) { } Class cls; uintptr_t bits; #if defined(ISA_BITFIELD) struct { ISA_BIT ...
分类:移动开发   时间:2020-02-10 09:23:22    阅读次数:99
120. Triangle
Problem : Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below. For example, gi ...
分类:其他好文   时间:2020-02-10 00:20:24    阅读次数:81
7694条   上一页 1 ... 35 36 37 38 39 ... 770 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!