码迷,mamicode.com
首页 >  
搜索关键字:convert standalone    ( 5511个结果
leetcode第13题--Roman to Integer
Problem:Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999.遍历一次输入的字符串,如果不满足类似4或者9的就直接加相应的数,否则减去...
分类:其他好文   时间:2014-10-16 02:41:51    阅读次数:200
leetcode第12题--Integer to Roman
Problem:Given an integer, convert it to a roman numeral.Input is guaranteed to be within the range from 1 to 3999.把阿拉伯数字转换为罗马数字输出。百度一下对应的 I V X L C D ...
分类:其他好文   时间:2014-10-15 01:28:39    阅读次数:267
如何使用Matrix对bitmap的旋转与镜像水平垂直翻转
Bitmap convert(Bitmap a, int width, int height){int w = a.getWidth();int h = a.getHeight();Bitmap newb = Bitmap.createBitmap(ww, wh, Config.ARGB_8888)...
分类:其他好文   时间:2014-10-14 17:41:08    阅读次数:146
字符串编码、Base64字符串 互转
/// /// 将字符串编码为Base64字符串/// /// 要编码的字符串private string Base64Encode(string str){byte[] barray;barray=Encoding.Default.GetBytes(str);return Convert.ToBa...
分类:其他好文   时间:2014-10-14 13:56:08    阅读次数:211
Convert String to Long
Given a string, write a routine that converts the string to a long, without using the built in functions that would do this. Describe what (if any) li...
分类:其他好文   时间:2014-10-14 13:01:28    阅读次数:201
DateTime格式大全
方法一:Convert.ToDateTime(string)string格式有要求,必须是yyyy-MM-dd hh:mm:ss================================================方法二:Convert.ToDateTime(string, IFormat...
分类:其他好文   时间:2014-10-14 11:12:58    阅读次数:182
leetcode - Edit Distance
Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is counted as 1 step.) You have the following 3 operations permitted on a word:...
分类:其他好文   时间:2014-10-13 20:08:07    阅读次数:188
编程中的 if ()else() 语句
例句if()else()doubled=Convert.ToDouble(Console.ReadLine());if(d>=60&&d=0.5){d=(int)d;d++;}else{d=(int)d;}Console.WriteLine("结果为:"+d.ToString());Console....
分类:其他好文   时间:2014-10-13 19:09:41    阅读次数:250
大数据时代之hadoop(一):hadoop安装
Hadoop的运行模式有以下三种: 独立模式(standalone或local mode):无需任何守护进程(daemon),所有程序都在单个JVM上执行。主要用在开发阶段。默认属性就是为本模式所设,所以不需要额外的配置。 伪分布式模式(pseudo-distributed model):Hadoop守护进程运行在本地机器上,模拟一个小规模的集群。 全分布模式(full distributed model):Hadoop守护进程运...
分类:其他好文   时间:2014-10-13 12:15:19    阅读次数:252
leetcode第八题--String to Integer (atoi)
Problem:Implementatoito convert a string to an integer.Hint:Carefully consider all possible input cases. If you want a challenge, please do not see be...
分类:其他好文   时间:2014-10-13 01:47:48    阅读次数:187
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!