原题链接在这里:https://leetcode.com/problems/backspace-string-compare/ 题目: Given two strings S and T, return if they are equal when both are typed into empty ...
分类:
其他好文 时间:
2019-12-28 09:34:46
阅读次数:
77
一、redis概述 微信红包、淘宝、天猫、京东都使用redis redis是一种nosql 现在比较流行的nosql redis、memcached、mongodb、guava(loadingCache) redis支持多种数据类型:字符串(strings)、散列(hashes)、 列表(lists ...
分类:
编程语言 时间:
2019-12-26 19:07:02
阅读次数:
171
Description Description Given two strings S and T. Count the number of distinct subsequences of S which equals T. A subsequence of a string is a new s ...
分类:
其他好文 时间:
2019-12-21 22:46:20
阅读次数:
101
Description Description Given a set of strings which just has lower case letters and a target string, output all the strings for each the edit distanc ...
分类:
其他好文 时间:
2019-12-21 22:45:17
阅读次数:
83
Description Description Given two strings, find the longest common subsequence (LCS). Your code should return the length of LCS. Clarification What's ...
分类:
其他好文 时间:
2019-12-21 22:27:26
阅读次数:
80
Question: Longest Common Prefix Write a function to find the longest common prefix string amongst an array of strings. If there is no common prefix, r ...
分类:
其他好文 时间:
2019-12-18 22:08:32
阅读次数:
89
Sherlock Holmes received a note with some strange strings: Let's date! 3485djDkxh4hhGE 2984akDfkkkkggEdsb s&hgsfdk d&Hyscvnm. It took him only a minut ...
分类:
其他好文 时间:
2019-12-17 17:57:53
阅读次数:
93
stream中有很多方法,讲一些常用的。 1.forEach(),遍历方法,很简单,对于一般的遍历可以替代for循环 List<String> strings = Arrays.asList("abc", "", "bc", "efg", "abcd","", "jkl"); strings.str ...
分类:
其他好文 时间:
2019-12-16 16:19:38
阅读次数:
94
转自:https://www.jb51.net/article/148388.htm strings 包中的函数和方法 // Count 计算字符串 sep 在 s 中的非重叠个数 // 如果 sep 为空字符串,则返回 s 中的字符(非字节)个数 + 1 // 使用 Rabin-Karp 算法实现 ...
分类:
其他好文 时间:
2019-12-16 09:46:48
阅读次数:
85
注意各种反转 javascript var multiply = function (a, b) { var cn = a.length + b.length; var product = new Array(cn).fill(0); / 两两相乘,并放进不同的格子里,如果里面有东西,则相加 num ...
分类:
其他好文 时间:
2019-12-15 20:18:18
阅读次数:
136