码迷,mamicode.com
首页 >  
搜索关键字:two pointer    ( 13796个结果
Exercise 3: Integer Right Triangles
Given a perimeter of 60, we can find two right triangles with integral length sides: [(10, 24, 26), (15, 20, 25)]. Complete the following function, wh ...
分类:其他好文   时间:2020-05-28 00:59:06    阅读次数:86
496. Next Greater Element I
package LeetCode_496 /** * 496. Next Greater Element I * https://leetcode.com/problems/next-greater-element-i/description/ * * You are given two array ...
分类:其他好文   时间:2020-05-26 22:09:23    阅读次数:112
IOS webapp常见问题
1.解决滑动卡顿/不流畅/掉帧```-webkit-overflow-scrolling: touch;``` 2.禁止input弹出键盘```<input type="text" onfocus='this.blur();'/>``` 3.禁止长按保存图片```img{ pointer-event ...
分类:移动开发   时间:2020-05-26 15:30:38    阅读次数:101
IDEA java.lang.NullPointerException异常
空指针异常 java.lang.NullPointerException 解决方法:将RunWith 注解加上即可 ...
分类:编程语言   时间:2020-05-26 09:18:54    阅读次数:236
lc 两数相加
链接:https://leetcode-cn.com/problems/add-two-numbers/ 代码: /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * L ...
分类:其他好文   时间:2020-05-25 00:15:00    阅读次数:65
C++ 随机访问文件
顺序访问文件 一个文件是由一个字节序列构成的。操作系统维护一个叫做文件指针(file pointer)的特殊标记,指向序列中的某个位置。读写操作都是在文件指针指向的位置进行。当文件打开时,文件指针被设置在文件开始位置。当读写数据时,文件指针会移动到下一个数据项。例如,如果使用get()函数读取一个字 ...
分类:编程语言   时间:2020-05-24 16:23:54    阅读次数:147
C++20协程解糖 - 动手实现协程3 - generator和co_yield
本期实现的功能很简单,协程的重头都在co_await和异步操作上,generator本身是一个很轻的东西如果你看到这行文字,说明这篇文章被无耻的盗用了(或者你正在选中文字),请前往 cnblogs.com/pointer-smq 支持原作者,谢谢基本结构generator和future/promis... ...
分类:编程语言   时间:2020-05-24 13:59:39    阅读次数:102
404. Sum of Left Leaves 404.左叶总和
Find the sum of all left leaves in a given binary tree. Example: 3 / \ 9 20 / \ 15 7 There are two left leaves in the binary tree, with values 9 and 1 ...
分类:其他好文   时间:2020-05-24 11:27:13    阅读次数:52
986. Interval List Intersections
Given two lists of closed intervals, each list of intervals is pairwise disjoint and in sorted order. Return the intersection of these two interval li ...
分类:其他好文   时间:2020-05-24 09:40:12    阅读次数:58
数组指针和指针数组
数组指针和指针数组 一、概念 数组指针就是指针,是指向数组的指针,a pointer to an array,首先它是一个指针,它指向一个数组,在32 位系统下永远是占4 个字节。 指针数组就是数组,是个保存指针的数组,array of pointers,即用于存储指针的数组,也就是数组元素都是指针 ...
分类:编程语言   时间:2020-05-23 20:26:08    阅读次数:69
13796条   上一页 1 ... 29 30 31 32 33 ... 1380 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!