码迷,mamicode.com
首页 >  
搜索关键字:left    ( 12115个结果
算法第二章上机报告
题目: 设计一个平均时间为O(n)的算法,在n(1<=n<=1000)个无序的整数中找出第k小的数。 提示:函数int partition(int a[],int left,int right)的功能是根据a[left]~a[right]中的某个元素x(如a[left])对a[left]~a[rig ...
分类:编程语言   时间:2020-10-09 20:22:27    阅读次数:38
951. Flip Equivalent Binary Trees
For a binary tree T, we can define a flip operation as follows: choose any node, and swap the left and right child subtrees. A binary tree X is flip e ...
分类:其他好文   时间:2020-10-08 19:09:30    阅读次数:24
仿淘宝返回顶部案例
.案例:返回顶部 带有动画的返回顶部 此时可以继续使用我们封装的动画函数 只需要把所有的left 相关的值改为 跟 页面垂直滚动距离相关就可以了 页面滚动了多少,可以通过 window.pageYOffset 得到 最后是页面滚动,使用 window.scroll(x,y) <script> // ...
分类:其他好文   时间:2020-10-08 18:05:19    阅读次数:19
第二章上机实验报告
1.实践问题: 寻找第k小的数 2.问题描述: 设计一个平均时间为O(n)的算法 ,在n(1 <= n <= 1000)个无序的整数中找出第k小的数。 提示:函数int partition(int a[],int left,int right)的功能是根据a[left]~a[right]中的某个元素 ...
分类:其他好文   时间:2020-10-07 20:23:50    阅读次数:26
emmet css样式语法
基本的CSS样式编写时,很多样式只需输入首字母即可得到不带属性值的CSS样式,像上面说到的margin。 1、而对于一些带有特定的属性值的CSS样式,只需输入CSS标签与属性值的首字母就可以,比如: fl → float: left; 2、而在编写这些CSS样式时,有很多是我们想好的写法,但生成的不 ...
分类:Web程序   时间:2020-09-21 11:36:46    阅读次数:64
position属性sticky
在目标区域以内,它的行为就像 position:relative; 而当页面滚动超出目标区域时,它的表现就像 position:fixed;,它会固定在目标位置。 元素定位表现为在跨越特定阈值前为相对定位,之后为固定定位。 这个特定阈值指的是 top, right, bottom 或 left 之一 ...
分类:其他好文   时间:2020-09-18 03:15:31    阅读次数:37
归并排序
importjava.util.Scanner;publicclassMain{publicstaticvoidsort(int[]arr,intleft,intright){if(left>=right){return;}intm=(left+right)>>>1;sort(arr,left,m);sort(arr,m+1,right);int[]tmp=newint[r
分类:编程语言   时间:2020-09-18 02:46:24    阅读次数:36
mysql 字符串 拼接 截取 替换
一. 字符串拼接 concat('asdf',str); -- asdfhello 二、字符串截取 从左开始截取字符串 left(str, length) --说明:left(被截取字段,截取长度) select left('hello',3); --hel 从右开始截取字符串 right(str, ...
分类:数据库   时间:2020-09-18 01:38:10    阅读次数:44
239. Sliding Window Maximum 239.滑动窗口最大值
Given an array nums, there is a sliding window of size k which is moving from the very left of the array to the very right. You can only see the k num ...
分类:Windows程序   时间:2020-09-18 01:29:48    阅读次数:47
页面中如何实现背景图100%铺满全屏
.box{ width:100%; background: url(../img/bg.png) no-repeat; background-size: 100% 100%; position: absolute; z-index: -1; top: 0; left: 0; right: 0; } ...
分类:其他好文   时间:2020-09-18 01:18:19    阅读次数:31
12115条   上一页 1 ... 20 21 22 23 24 ... 1212 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!