码迷,mamicode.com
首页 >  
搜索关键字:golang strings    ( 7127个结果
【leetcode】Longest Palindromic Substring
Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique longest pa...
分类:其他好文   时间:2014-05-18 19:39:55    阅读次数:355
Android-第一天
1.google2.application->application framework->libraries(调用关系)3.strings.xml 是全局字符串的配置文件4.ADT(Android Development Tools):其中DDMS是测试插件5.Android DDMS 中的日志输...
分类:移动开发   时间:2014-05-16 23:16:17    阅读次数:311
CareerCup之1.8 字符串移位包含问题
【题目】 原文: 1.8 Assume you have a method isSubstring which checks if one word is a substring of another. Given two strings, s1 and s2, write code to check if s2 is a rotation of s1 using only one...
分类:其他好文   时间:2014-05-16 01:50:08    阅读次数:311
使用typedef语句定义数组类型
使用typedef语句定义数组类型1. 一维数组类型的定义格式typedef [];例如:(1) typedef int vector[10];(2) typedef char strings[80];(3) typedef short int array[N];第一条语句定义了一个元素类型为int...
分类:其他好文   时间:2014-05-15 22:13:17    阅读次数:244
[LeetCode] [Add Binary 2012-04-02 ]
Given two binary strings, return their sum (also a binary string).For example, a = "11" b = "1" Return "100".string 的操作,短string补位。两个“0”会输出一个“00”,要特殊处理...
分类:其他好文   时间:2014-05-15 17:47:57    阅读次数:283
leetcode第一刷_Multiply Strings
前面提到过很多次大整数的问题,这个是真正的大整数。 我用了一个很蠢得方法,先写一个大整数和一个个位数相乘的方法,返回的结果是一个string,然后写一个string相加的方法,每次循环,用其中一个数的每一位去乘另一个数,然后加到结果上。。 多么愚蠢的思路,居然还一遍过了。。一个更好的方法是先用两个int数组把两个string存一下,每位占数组中的一个数,然后再用一个int数组保存结果,每次也是...
分类:其他好文   时间:2014-05-15 14:55:51    阅读次数:322
将字符串转化为某种类型
//将字符串转化为type型.privateobjectparse(strings,Typet){//如果字符串是一个string,直接返回.if(t.IsAssignableFrom(typeof(string)))returns;//如果字符串是一个数组,那么将其解析为数组并返回.if(t.Is...
分类:其他好文   时间:2014-05-15 13:40:45    阅读次数:210
[LeetCode]Longest Common Prefix
Longest Common Prefix Write a function to find the longest common prefix string amongst an array of strings....
分类:其他好文   时间:2014-05-15 13:27:07    阅读次数:233
GOLANG 在 UBUNTU 14.04 上使用 Oracle 数据库
本文参考了以下地址的文章: https://github.com/Centny/Centny/blob/master/Articles/How%20build%20github.com%3amattn%3ago-oci8.md? 一、安装oracle的OCI套件 1、OCI下载链接页面下载(instantclient-basic,instantclie...
分类:数据库   时间:2014-05-15 04:09:37    阅读次数:461
Multiply Strings
Given two numbers represented as strings, return multiplication of the numbers as a string.Note: The numbers can be arbitrarily large and are non-nega...
分类:其他好文   时间:2014-05-14 23:11:14    阅读次数:398
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!