
字符串
文章平均质量分 73
nameix
这个作者很懒,什么都没留下…
展开
-
LeetCode------58. Length of Last Word(字符串中最后一个单词的长度)
Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string. If the last word does not exist, return 0. Note: A word is原创 2016-11-04 22:37:13 · 386 阅读 · 0 评论 -
OJ--------字符个数统计
描述 编写一个函数,计算字符串中含有的不同字符的个数。字符在ACSII码范围内(0~127)。不在范围内的不作统计。 知识点 字符串,函数,指针 运行时间限制 10M 内存限制 128 输入 输入N个字符,字符在ACSII码范围内(0~127)。 输出 输出字符的个数。 样例输入 abc 样原创 2016-08-12 15:10:17 · 755 阅读 · 0 评论 -
OJ------查找两个字符串a,b中的最长公共子串
描述 查找两个字符串a,b中的最长公共子串。详细描述:查找两个字符串a,b中的最长公共子串。 接口设计及说明: /***************************************************************************** Description : 查找两个字符串a,b中的最长公共子串 Input Param : String str原创 2016-09-13 08:57:52 · 399 阅读 · 0 评论 -
华为OJ-----两个字符串的相似度
import java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner scanner = new Scanner(System.in); String a = scanner.nextLine(); String b = scanner.nextLine();原创 2016-11-21 23:19:53 · 375 阅读 · 0 评论