![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
字符串处理
srping123
这个作者很懒,什么都没留下…
展开
-
LeetCode(五)387. First Unique Character in a String&409. Longest Palindrome
387. First Unique Character in a String题目要求如下 Given a string, find the first non-repeating character in it and return it’s index. If it doesn’t exist, return -1. Examples: s = “leetcode”转载 2017-08-13 12:37:58 · 186 阅读 · 0 评论 -
LeetCode(八)415. Add Strings
题目要求如下 Given two non-negative integers num1 and num2 represented as string, return the sum of num1 and num2. Note: The length of both num1 and num2 is < 5100. Both num1 and num2 cont转载 2017-08-18 16:39:31 · 174 阅读 · 0 评论 -
LeetCode 67. Add Binary
题目要求如下 Given two binary strings, return their sum (also a binary string). For example, a = “11” b = “1” Return “100”. 一开始想的是转化成十进制一加,再转化回来就行,写了这个class Solution { public String addBinary(Stri转载 2017-09-05 20:48:35 · 267 阅读 · 0 评论 -
LeetCode 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 to get t. All occurrences of a character must be rep转载 2017-08-28 15:06:29 · 159 阅读 · 0 评论