码迷,mamicode.com
首页 >  
搜索关键字:code    ( 108667个结果
Java实现 lower_bound() 和 upper_bound()
Java实现 lower_bound() 和 upper_bound() lower_bound() 函数 lower_bound() 在 [begin, end) 进行二分查找,返回 大于或等于 tar的第一个元素位置。如果所有元素都小于tar,则返回 end. upper_bound() 函数 ...
分类:编程语言   时间:2018-02-14 19:11:49    阅读次数:215
str字符串
以下部分摘自雨辰老师的教学 ...
分类:其他好文   时间:2018-02-14 16:21:42    阅读次数:136
Voronoi图及matlab实现
Voronoi图,又叫泰森多边形或Dirichlet图,它是由一组由连接两邻点直线的垂直平分线组成的连续多边形组成。N个在平面上有区别的点,按照最邻近原则划分平面;每个点与它的最近邻区域相关联。Delaunay三角形是由与相邻Voronoi多边形共享一条边的相关点连接而成的三角形。Delaunay三 ...
分类:其他好文   时间:2018-02-14 16:20:59    阅读次数:2556
18.2.14 【水】codevs1475 m进制转十进制
题目描述 Description 将m进制数n转化成一个十进制数 m<=16 题目保证转换后的十进制数<=100 题目描述 Description 将m进制数n转化成一个十进制数 m<=16 题目保证转换后的十进制数<=100 将m进制数n转化成一个十进制数 m<=16 题目保证转换后的十进制数<= ...
分类:其他好文   时间:2018-02-14 15:33:42    阅读次数:179
LeetCode:3Sum
Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of ...
分类:其他好文   时间:2018-02-14 11:46:43    阅读次数:165
剑指Offer - 平衡二叉树
https://www.nowcoder.com/practice/8b3b95850edb4115918ecebdf1b4d222?tpId=13&tqId=11192&tPage=2&rp=2&ru=/ta/coding-interviews&qru=/ta/coding-interviews/ ...
分类:其他好文   时间:2018-02-14 11:45:18    阅读次数:207
从文件中读取字符-多次调用read characters from file multiple calls
[抄题]: 接口:int read4(char * buf)一次从文件中读取 4 个字符。返回值是实际读取的字符数。 例如,如果文件中只剩下 3 个字符,则返回 3。通过使用read4 接口,实现从文件读取 n 个字符的函数int read(char * buf,int n)。 [暴力解法]: 时间 ...
分类:其他好文   时间:2018-02-14 11:40:15    阅读次数:127
Draw your Next App Idea with Ink to Code
Imagine that you’ve just been struck by inspiration for your next great app. You might start by jotting some notes and sketching out screens. If you’r ...
分类:移动开发   时间:2018-02-14 10:40:58    阅读次数:299
Inspect Memory Leak
Try to inspect the memory leak in the following code: If a stack grows and then shrinks, the objects that were popped off the stack will not be garbag ...
分类:其他好文   时间:2018-02-14 10:39:48    阅读次数:163
ti-sdk-evm-am335x-05.07 uboot分析(MLO跳转到u-boot之前)
ROM CODE怎样从MMC启动 ROM code将boot parameters的结构体指针通过R0寄存器传递给MLO,在start.s的reset部分,第一句指令就是: bl save_boot_params. 5.07版本号中相关代码比較复杂。而7.00中就相对简单: 就是将R0的数据存储到r ...
分类:其他好文   时间:2018-02-14 10:34:37    阅读次数:199
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!