You have devised a new encryption technique which encodes a message by inserting between its characters randomly generated strings in a clever way. Be ...
分类:
其他好文 时间:
2018-01-21 13:53:17
阅读次数:
148
哈希表可以用ASCII码数组来实现,可以更快 ...
分类:
其他好文 时间:
2018-01-18 20:43:23
阅读次数:
151
原题链接在这里:https://leetcode.com/problems/permutation-in-string/description/ 题目: Given two strings s1 and s2, write a function to return true if s2 contai ...
分类:
其他好文 时间:
2018-01-17 10:10:44
阅读次数:
133
import java.util.Scanner; public class Main { public static void main(String[] args) { String string = new Scanner(System.in).next(); String[] strings... ...
分类:
其他好文 时间:
2018-01-13 23:40:18
阅读次数:
207
Equations are given in the format A / B = k, where A and B are variables represented as strings, and k is a real number (floating point number). Given ...
分类:
其他好文 时间:
2018-01-13 21:01:59
阅读次数:
183
Given a list of strings words representing an English Dictionary, find the longest word in words that can be built one character at a time by other wo ...
分类:
其他好文 时间:
2018-01-13 21:00:26
阅读次数:
225
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", t = ...
分类:
其他好文 时间:
2018-01-13 20:54:23
阅读次数:
147
Given an array of strings, group anagrams together. For example, given: ["eat", "tea", "tan", "ate", "nat", "bat"], Return: [ ["ate", "eat","tea"], [" ...
分类:
其他好文 时间:
2018-01-13 18:57:04
阅读次数:
213
1. 官方Feature JEP254: Compact Strings 2. 产生背景 Motivation The current implementation of the String classstores characters in a char array,using two byte ...
分类:
编程语言 时间:
2018-01-13 11:12:46
阅读次数:
244
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", t = ...
分类:
其他好文 时间:
2018-01-13 11:05:53
阅读次数:
83