码迷,mamicode.com
首页 >  
搜索关键字:isomorphic strings    ( 3304个结果)
[LeetCode]-011-Longest Common Prefix
Write a function to find the longest common prefix string amongst an array of strings. []=>""["abcweed","htgdabc","sabcrf"]=>""["abcweed","abhtgdc","a ...
分类:其他好文   时间:2016-04-18 11:38:56    阅读次数:129
Longest Common Subsequence (DP)
Given two strings, find the longest common subsequence (LCS). Your code should return the length of LCS. Example For "ABCD" and "EDCA", the LCS is "A" ...
分类:其他好文   时间:2016-04-18 08:43:52    阅读次数:117
leetcode 67. Add Binary (高精度加法)
Given two binary strings, return their sum (also a binary string). For example,a = "11"b = "1"Return "100". 简单的二进制高精度加法。 ...
分类:其他好文   时间:2016-04-17 16:09:56    阅读次数:148
leetcode-Group Anagrams
Given an array of strings, group anagrams together. For example, given: ["eat", "tea", "tan", "ate", "nat", "bat"], Return: Note: 映射关系如下: 代码如下: packag ...
分类:其他好文   时间:2016-04-17 13:11:00    阅读次数:358
菜鸟看Redis(一)
一、 Redis简介 Redis是用C语言编写的开源软件,可以运行在Linux上,目前不支持Windows。Redis通常会被用于缓存、数据持久化、消息队列,Redis避免了服务器挂掉后,内存数据丢失的问题。Redis支持5种数据结构: strings, hashes, lists, sets, s ...
分类:其他好文   时间:2016-04-17 06:38:59    阅读次数:230
BUPT 2016校赛-Binary Strings 概率DP
题目貌似是不对外开放的。 题意: 给你一个01串,其中会有未知个数的? 可以为0或1,问这个01串的任意一个子串能整除3的个数的期望。 忽略前导0。 输入 一个 T 包含T组数据(1≤T≤50) 接下来T组中,一个N (1≤N≤100000) N长度的01?串 输出 保留2位小数。 题解 dp[i] ...
分类:其他好文   时间:2016-04-17 06:20:09    阅读次数:128
Leetcode 242 Valid Anagram pytyhon
题目: Given two strings s and t, write a function to determine if t is an anagram of s. For example,s = "anagram", t = "nagaram", return true.s = "rat", ...
分类:其他好文   时间:2016-04-17 06:16:30    阅读次数:129
hdu1501 记忆化搜索。。。
Problem Description Given three strings, you are to determine whether the third string can be formed by combining the characters in the first two stri ...
分类:其他好文   时间:2016-04-17 00:49:07    阅读次数:161
leetcode 67. Add Binary
Given two binary strings, return their sum (also a binary string). For example,a = "11"b = "1"Return "100". 我的思路是: 1,先将两个string的长度设置为一样大小,小的进行左边补零。 2, ...
分类:其他好文   时间:2016-04-16 16:50:18    阅读次数:128
[2016-04-13][codeforces][447][B][DZY Loves Strings]
时间:2016-04-13 23:36:46 星期三 题目编号:[2016-04-13][codeforces][447][B][DZY Loves Strings] 题目大意:已知每个字母的权值,给定一个字符串s,问,插入k个字母进入字符串s之和,最多能得到多大的权值 分析:直接往s后面插入k个权... ...
分类:其他好文   时间:2016-04-14 01:21:05    阅读次数:144
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!