码迷,mamicode.com
首页 >  
搜索关键字:two pointer    ( 13796个结果
矿大OJ 1768.Power Strings.
题目描述 Given two strings a and b we define a*b to be their concatenation. For example, if a = "abc" and b = "def" then a*b = "abcdef". If we think of co ...
分类:其他好文   时间:2020-05-03 18:40:49    阅读次数:162
javascript_幻灯片播放
javascript实现幻灯片播放 实现原理 step1 设置容器,包含图片、翻页、下标等元素,通过相对定位来布局。 step2 将幻灯片变化,需要改变的元素放在一个字容器内,display设为none,并且采取动画来变化。 step3设置js函数,将应该播放的元素样式激活,其他的元素仍为未激活状态 ...
分类:编程语言   时间:2020-05-03 16:41:46    阅读次数:70
二叉树前序序列和中序序列转为后序序列
/* program to construct tree using inorder and preorder traversals */ #include <stdio.h> #include <stdlib.h> /* A binary tree node has data, pointer t ...
分类:其他好文   时间:2020-05-03 10:19:45    阅读次数:64
Reverse order pairs
In a sequence of numbers,we can find some number pairs that conform to the rule below: Assuming that there exist two numbers,N and M and it's position ...
分类:其他好文   时间:2020-05-02 18:46:09    阅读次数:60
1143 Lowest Common Ancestor (30分)
The lowest common ancestor (LCA) of two nodes U and V in a tree is the deepest node that has both U and V as descendants. A binary search tree (BST) i ...
分类:其他好文   时间:2020-05-02 14:54:12    阅读次数:50
1148 Werewolf - Simple Version (20分)
Werewolf(狼人杀) is a game in which the players are partitioned into two parties: the werewolves and the human beings. Suppose that in a game, player #1 ...
分类:其他好文   时间:2020-05-02 14:51:55    阅读次数:49
一招 git clone 加速 【实测有效】
一招 git clone 加速 【实测有效】 ? 作者:「c1rew」 链接:「https://juejin.im/post/5cfe66406fb9a07edb393c56」 ? 一、起因 为了修改自己博客的文件夹命名,就需要将github上的仓库下载到本地,使用git clone时,速度慢到无法 ...
分类:其他好文   时间:2020-05-02 11:35:43    阅读次数:145
1807. 斐波纳契数列简单
1807. 斐波纳契数列简单 中文English Find the Nth number in Fibonacci sequence. A Fibonacci sequence is defined as follow: The first two numbers are 0 and 1. The  ...
分类:其他好文   时间:2020-05-02 11:35:04    阅读次数:61
String、StringBuilder和StringBuffer
String String类代表字符串。Java程序中的所有字符串文字(例如"abc" )都被实现为此类的实例。 字符串不变; 它们的值在创建后不能被更改。 字符串缓冲区支持可变字符串。 因为String对象是不可变的,它们可以被共享。 例如: String str = "abc"; 相当于: ch ...
分类:其他好文   时间:2020-05-01 20:59:53    阅读次数:55
LeetCode 21. 合并两个有序链表
地址 https://leetcode-cn.com/problems/merge-two-sorted-lists/ 目描述将两个升序链表合并为一个新的升序链表并返回。新链表是通过拼接给定的两个链表的所有节点组成的。 样例示例: 输入:1->2->4, 1->3->4输出:1->1->2->3-> ...
分类:其他好文   时间:2020-05-01 14:49:16    阅读次数:56
13796条   上一页 1 ... 35 36 37 38 39 ... 1380 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!