码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
1sting
///题解 : 找规律,大菲波数Problem DescriptionYou will be given a string which only contains ‘1’; You can merge two adjacent ‘1’ to be ‘2’, or leave the ‘1’ ther...
分类:其他好文   时间:2015-02-01 23:08:42    阅读次数:227
Leetcode#131 Palindrome Partitioning
原题地址因为要找所有的解,只能搜索+回溯了看来数据量比较小,关于回文串的判断没有使用动态规划也可以过代码: 1 vector > res; 2 3 bool palindromep(string s) { 4 int i = 0; 5 int j = s.length() - 1; 6 ...
分类:其他好文   时间:2015-02-01 23:02:53    阅读次数:169
C#第一周
长字符的表示 1 namespace ConsoleApplication6 2 { 3 class Program 4 { 5 static void Main(string[] args) 6 { 7 string name...
分类:Windows程序   时间:2015-02-01 21:44:10    阅读次数:206
Java 日期字符串与日期类型转换
1、SimpleDateFormat.format 把日期类型转化到指定格式字符串public static String convToString(Calendar cld,String template){ String resultString=null; try ...
分类:编程语言   时间:2015-02-01 21:42:49    阅读次数:191
c#中Enum和String相互转换
枚举: public enum MonitorType { ManualMonitor ,//人工监测 Tm30,//TM机器人监测 Ls ,//拉载监测 FiberBraggGrate,//光纤光栅 LightMonitor,//微光监测...
分类:编程语言   时间:2015-02-01 20:31:55    阅读次数:194
redis的sets类型
set是集合 , 它是string类型的无序集合 . set是通过hash table 实现的 , 添加、删除和查找的复杂度都是O(1) . 对集合我们可以取并集、交集、差集。通过这些操作我们可以实现sns中的好友推荐和blog的tag功能 .sadd : 向名称为key的set中添加元素 s...
分类:其他好文   时间:2015-02-01 20:26:34    阅读次数:210
csharp: string Encoding
/// /// 中文转unicode /// /// /// public static string unicode_0(string str) { string outStr =...
分类:其他好文   时间:2015-02-01 20:26:10    阅读次数:234
php 字符串是否存在
/** * 方法库-字符串是否存在 * @param string $str :字符或字符串 * @param string $string :字符串 * @return string 例子: $str='34' $string='1234' 返回 TRUE */ public func...
分类:Web程序   时间:2015-02-01 20:25:31    阅读次数:173
php 截取字符串
1 /** 2 * 方法库-截取字符串-【该函数作者未知】 3 * @param string $string 字符串 4 * @param int $length 字符长度 5 * @param string $dot 截取后...
分类:Web程序   时间:2015-02-01 20:22:57    阅读次数:171
Android_CodeWiki_03
1、发送不重复的通知(Notification) public static void sendNotification(Context context, String title, String message, Bundle extras) { Intent...
分类:移动开发   时间:2015-02-01 20:21:03    阅读次数:195
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!