码迷,mamicode.com
首页 >  
搜索关键字:returns    ( 2350个结果
344. Reverse String Java Solutions
Write a function that takes a string as input and returns the string reversed. Example: Given s = "hello", return "olleh". Subscribe to see which comp ...
分类:编程语言   时间:2016-05-01 17:40:03    阅读次数:248
sql奇进偶舍函数
create function sslr(@num numeric(20,10),@i int) --@i保留的小数位 --@num传入的数据 returns varchar(20) as begin declare @numtemp numeric(20,10),@result varchar(2 ...
分类:数据库   时间:2016-05-01 17:30:24    阅读次数:289
StringOfChar 将一个字符重复多次 形成一个 字符串
StringOfChar Returns a string with a specified number of repeating characters. In Delphi code, StringOfChar returns a string that contains Count chara ...
分类:其他好文   时间:2016-05-01 01:09:08    阅读次数:175
LeetCode(69)-Reverse String
题目:Write a function that takes a string as input and returns the string reversed.Example: Given s = "hello", return "olleh".思路: 题意:反转字符串 不用考虑为空的情况,这种情况sb.toString()也是null,倒叙遍历,StringBuffer相加 代码:public...
分类:其他好文   时间:2016-04-29 19:58:45    阅读次数:141
【一天一道LeetCode】#28. Implement strStr()
一天一道LeetCode系列(一)题目 Implement strStr(). Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack. (二)解题第一种解法:朴素匹配算法 /*两个指针,分别指向两个字符串的首字符如果相等则一起向后移...
分类:其他好文   时间:2016-04-29 18:15:10    阅读次数:192
Leet Code OJ 28. Implement strStr() [Difficulty: Easy]
题目: Implement strStr(). Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.翻译: 实现一个方法strStr()。返回字符串needle第一次在字符串haystack出现的下标,如果needle不是haysta...
分类:其他好文   时间:2016-04-29 15:39:54    阅读次数:122
TextUtils.isEmpty() 和equals方法。
仔细读官方的API: Returns true if the string is null or 0-length. 因为你从EditText返回的是一个变量。如果这个变量本身为null值,那么你掉它的equals方法是要报错的。但是如果你调用TextUtils.isEmpty() 把这个变量作为参 ...
分类:其他好文   时间:2016-04-28 21:23:01    阅读次数:484
C#操作Sql server数据库
/// <summary> /// 创建数据库 /// </summary> /// <param name="dbname"></param> /// <param name="dbpath"></param> /// <returns></returns> public string Creat ...
分类:数据库   时间:2016-04-27 20:37:22    阅读次数:217
c#操作IIS站点
/// <summary> /// 获取本地IIS版本 /// </summary> /// <returns></returns> public string GetIIsVersion() { try { DirectoryEntry entry = new DirectoryEntry("II ...
分类:Windows程序   时间:2016-04-27 20:25:58    阅读次数:317
LeetCode(69)-Reverse String
题目:Write a function that takes a string as input and returns the string reversed.Example: Given s = "hello", return "olleh".思路: 题意:反转字符串 不用考虑为空的情况,这种情况sb.toString()也是null,倒叙遍历,StringBuffer相加 代码:public...
分类:其他好文   时间:2016-04-26 21:55:19    阅读次数:123
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!