码迷,mamicode.com
首页 >  
搜索关键字:median of two sorted    ( 17004个结果
关于数组删除
let arr1 = ['one', 'two', 'there'], arr2 = ['red', 'yellow', 'blue'], arr3 = ['brid', 'dog', 'pig'], arr4 = ['orange','apple','banner' ...
分类:编程语言   时间:2020-04-20 16:07:43    阅读次数:82
1132 Cut Integer
Cutting an integer means to cut a K digits lone integer Z into two integers of (K/2) digits long integers A and B. For example, after cutting Z = 1673 ...
分类:其他好文   时间:2020-04-20 11:55:53    阅读次数:62
762. Prime Number of Set Bits in Binary Representation
Problem : Given two integers L and R, find the count of numbers in the range [L, R] (inclusive) having a prime number of set bits in their binary repr ...
分类:其他好文   时间:2020-04-20 11:50:44    阅读次数:65
两数相加
此博客链接: 两数相加() 题目链接:https://leetcode-cn.com/problems/add-two-numbers/comments/ class Solution { public ListNode addTwoNumbers(ListNode l1, ListNode l2) ...
分类:其他好文   时间:2020-04-20 10:27:00    阅读次数:77
寻找两个有序数组的中位数-LeetCode
给定两个大小为 m 和 n 的有序数组?nums1 和?nums2。 请你找出这两个有序数组的中位数,并且要求算法的时间复杂度为?O(log(m + n))。 你可以假设?nums1?和?nums2?不会同时为空。 示例 1: 示例 2: 来源:力扣(LeetCode) 链接:https://lee ...
分类:编程语言   时间:2020-04-20 01:00:33    阅读次数:65
[安洵杯 2019]easy_serialize_php
[安洵杯 2019]easy_serialize_php.md 锻炼代码审计能力和学习 PHP反序列化 反序列化中的对象逃逸 SQL注入既视感 首先明确几个点: 序列化后的结果是一串字符串。 反序列化会解开序列化的字符串生成相应类型的数据。 如下代码示例,img是一个数组,下标分别是one和two, ...
分类:Web程序   时间:2020-04-19 17:58:27    阅读次数:191
658. Find K Closest Elements
Problem : Given a sorted array, two integers k and x, find the k closest elements to x in the array. The result should also be sorted in ascending ord ...
分类:其他好文   时间:2020-04-19 00:38:45    阅读次数:62
Python高阶函数及sorted函数原理
高阶函数 函数在Python中是一等公民 函数也是对象,可调用的对象 函数可以作为普通变量,参数,返回值等 成为高阶函数的必要条件: 接收一个或多个函数作为参数 输出一个函数 示例: def counter(base): def inc(step=1): nonlocal base base += ...
分类:编程语言   时间:2020-04-18 23:15:21    阅读次数:130
693. Binary Number with Alternating Bits
Problem : Given a positive integer, check whether it has alternating bits: namely, if two adjacent bits will always have different values. Example 1: ...
分类:其他好文   时间:2020-04-18 22:43:40    阅读次数:74
670. Maximum Swap
Problem : Given a non negative integer, you could swap two digits at most once to get the maximum valued number. Return the maximum valued number you ...
分类:其他好文   时间:2020-04-18 13:33:58    阅读次数:75
17004条   上一页 1 ... 50 51 52 53 54 ... 1701 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!