#205 Isomorphic Strings Given two strings s and t, determine if they are isomorphic. Two strings are isomorphic if the characters in s can be replaced ...
分类:
其他好文 时间:
2017-07-13 14:26:56
阅读次数:
178
翻译 给定两个二进制字符串,返回它们的和(也是二进制字符串)。 比如, a = "11" b = "1" 返回 "100". 原文 Given two binary strings, return their sum (also a binary string). For example, a = ...
分类:
其他好文 时间:
2017-07-11 21:24:49
阅读次数:
204
原始字面量很容易理解,即不进行转义的完整字符串。 最近看了看Python,其中讲到了原始字符串。 Both string and bytes literals may optionally be prefixed with a letter ‘r’ or ‘R’; such strings are ...
分类:
编程语言 时间:
2017-07-11 19:32:49
阅读次数:
217
Eva would like to make a string of beads with her favorite colors so she went to a small shop to buy some beads. There were many colorful strings of b ...
分类:
其他好文 时间:
2017-07-10 20:21:44
阅读次数:
237
Given two words word1 and word2, find the minimum number of steps required to make word1 and word2 the same, where in each step you can delete one cha ...
分类:
其他好文 时间:
2017-07-10 10:34:14
阅读次数:
202
https://leetcode.com/problems/multiply-strings/#/description Given two non-negative integers num1 and num2 represented as strings, return the product ...
分类:
其他好文 时间:
2017-07-09 12:38:23
阅读次数:
107
Given two non-negative integers num1 and num2 represented as string, return the sum of num1 and num2. Note: 思路: 模拟手工加法过程,用carry表示进位。 第一个是自己写的,比较啰嗦。 第二 ...
分类:
其他好文 时间:
2017-07-05 23:41:38
阅读次数:
201
1:ValueError: All strings must be XML compatible: Unicode or ASCII, no NULL bytes or control characters 中文编码造成,在models文件中定义的字段中文值在XML视图文件中不兼容。 解决方法:在m ...
分类:
其他好文 时间:
2017-07-05 18:44:37
阅读次数:
178
packagecontrollers
import(
"github.com/revel/revel"
"fmt"
"time"
"strconv"
"strings"
"database/sql"
"text/template"
_"github.com/go-sql-driver/mysql"
)
typeSparkstruct{
*revel.Controller
}
var(
starlist=map[string]string{
"xuezhiqian":"薛之谦",
"wanghan"..
分类:
编程语言 时间:
2017-07-05 11:42:36
阅读次数:
269
SDS(Simple Dynamic Strings)是一个C语言字符串库,设计中增加了从堆上分配内存的字符串,来扩充有限的libc字符处理的功能,使得: 使用更简便 二进制安全 计算更有效率 而且仍旧…兼容一般的C字符串功能 它使用另一种设计来实现,不用C结构体来表现一个字符串,而是使用一个二进制 ...
分类:
其他好文 时间:
2017-07-04 16:05:57
阅读次数:
227