码迷,mamicode.com
首页 >  
搜索关键字:find depth    ( 25355个结果
Leetcode | First Missing Positive
Given an unsorted integer array, find the first missing positive integer.For example,Given [1,2,0] return 3,and [3,4,-1,1] return 2.Your algorithm sho...
分类:其他好文   时间:2014-05-16 02:58:54    阅读次数:249
修改及查看mysql数据库的字符集
修改及查看mysql数据库的字符集Liunx下修改MySQL字符集:1.查找MySQL的cnf文件的位置find/-iname‘*.cnf‘-print/usr/share/mysql/my-innodb-heavy-4G.cnf/usr/share/mysql/my-large.cnf/usr/share/mysql/my-small.cnf/usr/share/mysql/my-medium.cnf/usr/share/mysql/my-huge.cn..
分类:数据库   时间:2014-05-16 02:33:28    阅读次数:426
unity3d关于怎样动态改变物体 shader
material=newMaterial(Shader.Find("Custom/Alpha"));material.SetFloat("_Shininess",materialAlpha);voidOnRenderImage(RenderTexturesource,RenderTexturedestination){Graphics.Blit(source,destination,material);}
分类:其他好文   时间:2014-05-16 02:28:04    阅读次数:572
[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 zero....
分类:其他好文   时间:2014-05-16 01:34:36    阅读次数:293
LeetCode 011 Container With Most Water
【题目】 Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line i is at (i, ai) and (i, 0). Find two lines, which together with x-axis forms a contain...
分类:其他好文   时间:2014-05-16 01:32:47    阅读次数:406
Radar之字节流加载图片
获取GUITextureGameObject _obj = GameObject.Find("Tex1");GUITexture _tex = _obj.GetComponent();加载图片字节流//读取文件到byte数组byte[] bytes = System.IO.File.ReadAllB...
分类:其他好文   时间:2014-05-16 01:07:48    阅读次数:242
开始在这里记录在jd的点滴成长~~~
开始在这里记录在jd的点滴成长~~~3月20日入职,距离今天两个月还差5天,不过这段时间完成的东西还真不少,学习了很多的linux命令和Axure产品设计,比如:awk神器、sed、sort、head、tail、find、xargs、grep等等,收获很大~~~其中到今天为止已经完成了一个功能非常强...
分类:其他好文   时间:2014-05-16 01:03:10    阅读次数:314
删除大量小文件
FreeBSD删除文件缓存,在负载方面FreeBSD比CentOS好很多很多。#!/bin/sh if[!-s/tmp/dir.dat];then find/home/www/web/cache-typed>/tmp/dir.dat fi mkdir/var/tmpdir DIRS=`cat/tmp/dir.dat` foriin$DIRS do load=$(top-n1|awk-F‘[.]+‘‘/averages/{print$6}‘) #rsync--delet..
分类:其他好文   时间:2014-05-15 18:51:06    阅读次数:314
Git服务器代理上网安装出现问题的几个解决办法。
1、gem安装出现下面错误 root@ubuntu:/home/git/gitlab# sudo gem install bundler --no-ri --no-rdoc ERROR:  Could not find a valid gem 'bundler' (>= 0), here is why:           Unable to download data from https...
分类:其他好文   时间:2014-05-15 18:19:48    阅读次数:304
[leetcode]_Minimum Depth of Binary Tree
第五道树题,10分钟之内一遍AC。做树题越来越有feel~题目:求一棵树从root结点到叶子结点的最短路径。思路:仍然是递归。如果一个结点的左右子树任意一边为Null,该子树的minDepth应为非null子树的高度+1;如果一个结点的左右子树两边都非Null,则该子树的minDepth应为两个子树...
分类:其他好文   时间:2014-05-15 17:24:43    阅读次数:226
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!