码迷,mamicode.com
首页 >  
搜索关键字:two pointers    ( 12138个结果
[安洵杯 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
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
tcp reset
RESET is a flag in TCP packets to indicate that the conection is not longer working. So, if any of the two participants in a TCP connection send a pac ...
分类:其他好文   时间:2020-04-18 09:16:18    阅读次数:74
leetcode-0001 两数之和
题目地址: "https://leetcode cn.com/problems/two sum/" 1.暴力解法 直接双重循环,枚举出所有可能的解,时间复杂度为O(n^2),空间复杂度为O(1) 2.HashTable 第一次循环将数组nums中的每个数都放入map中 第二次循环判断target n ...
分类:其他好文   时间:2020-04-17 00:50:56    阅读次数:61
A Plus Equals B
Problem: A?+?B is a problem used to test one's basic knowledge for competitive programming. Here is yet another boring variation of it. You have two i ...
分类:其他好文   时间:2020-04-16 22:50:39    阅读次数:182
Java两个List合并的10种方法
老外里面, 孔乙己也很多,, 居然可以总结出这么多茴香豆的写法. https://www.techiedelight.com/join-two-lists-java/ 3个 4个 2个 ...
分类:编程语言   时间:2020-04-16 13:21:19    阅读次数:733
496. Next Greater Element I
You are given two arrays (without duplicates) nums1 and nums2 where nums1’s elements are subset of nums2. Find all the next greater numbers for nums1' ...
分类:其他好文   时间:2020-04-15 15:17:52    阅读次数:68
Leetcode习题解统计
"【简单】1 两数之和 Two Sum" "【中等】2 两数相加 Add Two Num" "【中等】3 无重复字符的最长子串 Longest Substring Without Repeating Characters" "【困难】4 寻找两个有序数组的中位数 Median of Two Sort ...
分类:其他好文   时间:2020-04-15 15:15:11    阅读次数:70
12138条   上一页 1 ... 29 30 31 32 33 ... 1214 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!