码迷,mamicode.com
首页 >  
搜索关键字:isomorphic strings    ( 3304个结果)
Codeforces Round #306 (Div. 2)
A. Two SubstringsYou are given strings. Your task is to determine if the given stringscontains two non-overlapping substrings "AB" and "BA" (the subst...
分类:其他好文   时间:2015-06-06 11:53:46    阅读次数:251
LeetCode 14:Longest Common Prefix
Write a function to find the longest common prefix string amongst an array of strings.求最长公共前缀:以第一个字符串为模板比较之后的字符串即可。 1 public class Solution { 2 pu...
分类:其他好文   时间:2015-06-06 10:33:58    阅读次数:102
Codeforces Round #306 (Div. 2)——A——Two Substrings
You are given strings. Your task is to determine if the given stringscontains two non-overlapping substrings "AB" and "BA" (the substrings can go in a...
分类:其他好文   时间:2015-06-05 19:17:00    阅读次数:113
[leetcode 5]longest palindromic substring
1 题目:Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique longe...
分类:其他好文   时间:2015-06-05 15:31:51    阅读次数:137
Codeforces Round #306 (Div. 2)
转载请注明出处:http://www.cnblogs.com/fraud/ ——by fraudA. Two SubstringsYou are given strings. Your task is to determine if the given stringscontains two non...
分类:其他好文   时间:2015-06-05 06:22:58    阅读次数:484
android值类型转换
各种数字类型转换成字符串型:Strings=String.valueOf(value);//其中value为任意一种数字类型。字符串型转换成各种数字类型:Strings="169";byteb=Byte.parseByte(s);shortt=Short.parseShort(s);inti=Int...
分类:移动开发   时间:2015-06-04 18:47:58    阅读次数:135
leetcode - One Edit Distance
题目: One Edit Distance Given two strings S and T, determine if they are both oneedit distance apart. Hint: 1. If | n – m | is greater than 1, we know immediately both are not one-editdistance a...
分类:其他好文   时间:2015-06-04 17:17:29    阅读次数:112
【Android】利用表格布局,Android中xml文件与java的交互制作登录界面
登录界面是图形编程、网页编程的一个经典而又基础的程序。 在安卓中,如图所示一个基本登录界面: 点击取消按钮就关闭这个程序,点击登录按钮则显示用户输入的用户名与密码。 一、基本布局 这个程序利用到安卓中的表格布局。 先打开res/values/strings.xml中定义几个字符串。之所以不直接把字符串直接写在activity_main.xml的组件中,是因为免得Eclip...
分类:移动开发   时间:2015-06-04 09:58:16    阅读次数:541
LeetCode(14)--Longest Common Prefix
https://leetcode.com/problems/longest-common-prefix/原题:Write a function to find the longest common prefix string amongst an array of strings.思路:简单,直接遍...
分类:其他好文   时间:2015-06-03 19:02:16    阅读次数:120
C# @符号的作用, 可定义关键字为变量名
一字符串中的用法字符@表示,其后的字符串是个“逐字字符串”(verbatimstring)。@只能对字符串常量作用。1.用于文件路径以下是引用片段:strings_FilePath="C:\\ProgramFiles\\Microsoft.NET\\test.txt";相当于以下是引用片段:stri...
分类:Windows程序   时间:2015-06-03 15:16:14    阅读次数:175
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!