首页 > 其他
Bash 脚本编写与sed,awk使用
操作系统概述:hardware:最底层是硬件(各个厂家)kenerl:各个厂家的硬件通过简洁的统一的接口抽象出来,将整个操作系统虚拟出来,进行系统调用。库:将kernel最底层的数量较少的系统调用,封装成里用户较近的功能模块。应用程序:其中就有shell,服务于后台叫做守护进程和服务..
分类:其他   时间:2015-09-24 07:08:04    收藏:0  评论:0  赞:0  阅读:264
[LeetCode 223] Rectangle Area
Find the total area covered by two rectilinear rectangles in a 2D plane. Each rectangle is defined by its bottom left corner and top right corner as shown in the figure. Assume that the total a...
分类:其他   时间:2015-09-24 07:07:11    收藏:0  评论:0  赞:0  阅读:243
[LeetCode 205] Isomorphic Strings
Given two strings s and t, determine if they are isomorphic. Two strings are isomorphic if the characters in s can be replaced to get t. All occurrences of a character must be replaced with another...
分类:其他   时间:2015-09-24 07:07:01    收藏:0  评论:0  赞:0  阅读:163
Moving Zeros
Given an arraynums, write a function to move all0's to the end of it while maintaining the relative order of the non-zero elements.For example, givenn...
分类:其他   时间:2015-09-24 07:06:31    收藏:0  评论:0  赞:0  阅读:187
(三)、Struts第三天
(三)、Struts第三天Struts核心业务:(Struts提供了哪些功能?) 1. 请求数据自动封装(params拦截器) 2. struts数据处理方式 * ActionContext * 实现RequestAware 等接口 (servletConfig拦截器) * ServletActio...
分类:其他   时间:2015-09-24 07:06:04    收藏:0  评论:0  赞:0  阅读:184
Minimum Path Sum
题目:Given amxngrid filled with non-negative numbers, find a path from top left to bottom right whichminimizesthe sum of all numbers along its path.Note...
分类:其他   时间:2015-09-24 07:05:41    收藏:0  评论:0  赞:0  阅读:253
2015年秋季阅读计划
在11、12、1月各阅读一本书,每本书有三篇阅读笔记,每个阅读笔记发表间隔至少一周10月份阅读计划10月份准备阅读《需求工程-软件建模与分析》10月10日22:00前发表第一篇阅读笔记10月20日22:00前发表第二篇阅读笔记10月30日22:00前发表第三篇阅读笔记11月份阅读计划11月份准备阅读...
分类:其他   时间:2015-09-24 07:05:11    收藏:0  评论:0  赞:0  阅读:235
H-Index I, II
I. Given an array of citations (each citation is a non-negative integer) of a researcher, write a function to compute the researcher's h-index.Accordi...
分类:其他   时间:2015-09-24 07:04:51    收藏:0  评论:0  赞:0  阅读:306
**Word Break
题目:Given a stringsand a dictionary of wordsdict, determine ifscan be segmented into a space-separated sequence of one or more dictionary words.For exa...
分类:其他   时间:2015-09-24 07:04:41    收藏:0  评论:0  赞:0  阅读:188
Binary Tree Level Order Traversal II 解答
QuestionGiven a binary tree, return thebottom-up level ordertraversal of its nodes' values. (ie, from left to right, level by level from leaf to root)...
分类:其他   时间:2015-09-24 07:04:21    收藏:0  评论:0  赞:0  阅读:221
BFS visit tree
There are two ways to conduct BFS on tree.Solution 1 -- Given levelUse recursion to find given level, and print./*Function to print level order traver...
分类:其他   时间:2015-09-24 07:04:01    收藏:0  评论:0  赞:0  阅读:238
Binary Tree Level Order Traversal 解答
QuestionGiven a binary tree, return thelevel ordertraversal of its nodes' values. (ie, from left to right, level by level).For example:Given binary tr...
分类:其他   时间:2015-09-24 07:03:41    收藏:0  评论:0  赞:0  阅读:172
LintCode "Route Between Two Nodes in Graph"
DFS ended up with TLE. Only BFS works./** * Definition for Directed graph. * struct DirectedGraphNode { * int label; * vector neighbors; * ...
分类:其他   时间:2015-09-24 07:03:31    收藏:0  评论:0  赞:0  阅读:168
openGLSL Shader 大概用法流程
1.首先,必须要有一个能够读取文件的函数用来读取Shader,将Shader中的语句读到一个字符指针中,并返回这个指针,比如如下这个函数: 1 char* readFileFuc(char* filename){ 2 FILE* fp = fopen(filename, "r"); 3 ...
分类:其他   时间:2015-09-24 07:02:41    收藏:0  评论:0  赞:0  阅读:306
LeetCode Jump Game II
原题链接在这里:https://leetcode.com/problems/jump-game-ii/这是的Jump Game进阶版题目。求能跳到最后一个元素的最小步数。采用了Jump Game中的Method 2. maxJump是维护的当前能跳到的最大位置,maxReach是指从之前的点能rea...
分类:其他   时间:2015-09-24 07:02:31    收藏:0  评论:0  赞:0  阅读:261
LeetCode Gas Station
原题链接在这里:https://leetcode.com/problems/gas-station/参见这篇帖子:http://pisxw.com/algorithm/Gas-Station.htmlsumCur是走到当前油站的剩余油量,totalCir是走完一整圈的剩余油量。若是从起始站走到i站,...
分类:其他   时间:2015-09-24 07:02:21    收藏:0  评论:0  赞:0  阅读:225
LeetCode Jump Game
原题链接在这里:https://leetcode.com/problems/jump-game/维护一个当前能跳到的最大值maxJump, 若是maxJump 已经>=nums.length-1, 说明能跳到最后一个点,return true.若是过程中maxJump = nums.length-1...
分类:其他   时间:2015-09-24 07:01:41    收藏:0  评论:0  赞:0  阅读:161
日常的例子说明 throttle 和 debounce 的区别
首先,我们明确一下这两个函数的中文含义:throttle: 频率控制debounce: 空闲控制现在有一个输入框,用户正在输入一些文字,然后需要根据用户的输入向服务器发送 ajax 请求。假使用户正在疯狂码字中 :!@#¥%……&*()——+throttle 策略下,每隔一定时间,我们就设为 500...
分类:其他   时间:2015-09-24 07:01:01    收藏:0  评论:0  赞:0  阅读:300
./configure会报错:pr command not found
1.2安装coreutils请检查${MinGWDir}/msys/1.0/bin(默认为C:/MinGW/msys/1.0/bin)下有没有pr.exe,如果没有,那么在编译libav过程中,执行./configure会报错:pr command not found。下载coreutils-win...
分类:其他   时间:2015-09-24 07:00:51    收藏:0  评论:0  赞:0  阅读:2288
CCRenderTexture截取指定区域图片
-- 记录截取目标的原始坐标 local x, y = self._nodeRender:getPosition() -- 截取区域 local size = CCSizeMake(376, 1122) local pRender = CCRenderTexture:create(size.width,size.height,kCCTexture2DPixelFormat_RGBA888 ...
分类:其他   时间:2015-09-24 02:15:52    收藏:0  评论:0  赞:0  阅读:220
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!