码迷,mamicode.com
首页 >  
搜索关键字:golang strings    ( 7127个结果
[leetcode] Add Binary
Given two binary strings, return their sum (also a binary string).
分类:其他好文   时间:2014-07-09 23:52:48    阅读次数:383
基础知识 - 在 Ubuntu 14.04 中配置 Sublime Text 3 的 Golang 开发环境
在 Ubuntu 14.04 中配置 Sublime Text 3 的 Golang 开发环境
分类:其他好文   时间:2014-06-28 10:11:08    阅读次数:248
[leetcode] Multiply Strings
Given two numbers represented as strings, return multiplication of the numbers as a string.
分类:其他好文   时间:2014-06-27 12:38:25    阅读次数:169
java中this的几种用法
1.当成员变量和局部变量重名时,在方法中使用this时,表示的是该方法所在类中的成员变量。(this是当前对象自己)如:publicclassHello {Strings="Hello";publicHello(String s) {System.out.println("s = "+ s);Sys...
分类:编程语言   时间:2014-06-27 12:10:35    阅读次数:124
[leetcode] Anagrams
Given an array of strings, return all groups of strings that are anagrams.
分类:其他好文   时间:2014-06-27 11:34:57    阅读次数:641
freemarker写select组件报错总结(五)
1、错误描述 六月 26, 2014 10:44:49 下午 freemarker.log.JDK14LoggerFactory$JDK14Logger error 严重: Template processing error: "The only legal comparisons are between two numbers, two strings, or two dates.\nLeft...
分类:其他好文   时间:2014-06-27 07:21:12    阅读次数:196
golang 实现clock
在网上看到某人实现了一个简单的clock,发现代码编译不过,略作修改: 1 package main 2 3 import ( 4 "bufio" 5 "image" 6 "image/color" 7 "image/png" 8 "math" 9 ...
分类:其他好文   时间:2014-06-27 00:16:06    阅读次数:339
golang的interface到其他类型的数据转换
以string为例package mainimport "fmt"func main() { var a interface{} var b string a = "asdasdasdasd" b = a.(string) fmt.Println(a, b)}
分类:其他好文   时间:2014-06-26 17:29:36    阅读次数:202
Leetcode Add Binary
Given two binary strings, return their sum (also a binary string).For example,a ="11"b ="1"Return"100".class Solution {public: string addBinary(str...
分类:其他好文   时间:2014-06-26 15:52:27    阅读次数:159
Leetcode: Anagrams
Given an array of strings, return all groups of strings that are anagrams.Note: All inputs will be in lower-case.Analysis: 这个题简单的版本是判断两个单词是不是anagram,一...
分类:其他好文   时间:2014-06-26 12:47:48    阅读次数:144
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!