LeetCode 434. Number of Segments in a String

原题网址:https://leetcode.com/problems/number-of-segments-in-a-string/ Count the number of segments in a string, where a segment is defined to be a ...

2016-12-20 03:42:35

阅读数:414

评论数:0

HackRank Two Two

原题网址:https://www.hackerrank.com/challenges/two-two Prof. Twotwo as the name suggests is very fond powers of 2. Moreover he also has special affini...

2016-07-11 04:36:29

阅读数:622

评论数:0

LeetCode 131. Palindrome Partitioning(回文分区)

原题网址:https://leetcode.com/problems/palindrome-partitioning/ Given a string s, partition s such that every substring of the partition is a palindrom...

2016-05-27 00:25:24

阅读数:468

评论数:0

LeetCode 139. Word Break(单词分隔)

原题网址:https://leetcode.com/problems/word-break/ Given a string s and a dictionary of words dict, determine if s can be segmented into a space-separa...

2016-05-27 00:22:29

阅读数:631

评论数:0

LeetCode 151. Reverse Words in a String(反转单词)

原题网址:https://leetcode.com/problems/reverse-words-in-a-string/ Given an input string, reverse the string word by word. For example, Given s = "...

2016-05-26 01:06:09

阅读数:415

评论数:0

LeetCode 159. Longest Substring with At Most Two Distinct Characters(最长字串)

原题网址:https://leetcode.com/problems/longest-substring-with-at-most-two-distinct-characters/ Given a string, find the length of the longest substring...

2016-05-26 00:54:39

阅读数:334

评论数:0

LeetCode 161. One Edit Distance(编辑距离)

原题网址:https://leetcode.com/problems/one-edit-distance/ Given two strings S and T, determine if they are both one edit distance apart. 方法:两个字符串长度最多相差1...

2016-05-25 01:40:56

阅读数:572

评论数:0

LeetCode 179. Largest Number(最大数)

原题网址:https://leetcode.com/problems/largest-number/ Given a list of non negative integers, arrange them such that they form the largest number. For...

2016-05-25 01:36:20

阅读数:746

评论数:0

LeetCode 186. Reverse Words in a String II(反转单词)

原题网址:https://leetcode.com/problems/reverse-words-in-a-string-ii/ Given an input string, reverse the string word by word. A word is defined as a seq...

2016-05-25 01:36:04

阅读数:1129

评论数:0

LeetCode 97. Interleaving String(字符串交织)

原题网址:https://leetcode.com/problems/interleaving-string/ Given s1, s2, s3, find whether s3 is formed by the interleaving of s1 and s2. For example,...

2016-05-23 00:39:00

阅读数:579

评论数:0

LeetCode 79. Word Search(单词查找)

原题网址:https://leetcode.com/problems/word-search/ Given a 2D board and a word, find if the word exists in the grid. The word can be constructed from...

2016-05-22 05:21:03

阅读数:545

评论数:0

LeetCode 72. Edit Distance(编辑距离)

原题网址:https://leetcode.com/problems/edit-distance/ Given two words word1 and word2, find the minimum number of steps required to convert word1 to wo...

2016-05-22 05:18:34

阅读数:476

评论数:0

LeetCode 67. Add Binary(二进制加)

原题网址:https://leetcode.com/problems/add-binary/ Given two binary strings, return their sum (also a binary string). For example, a = "11" ...

2016-05-22 00:04:55

阅读数:395

评论数:0

LeetCode 58. Length of Last Word(最后一个单词的长度)

原题网址:https://leetcode.com/problems/length-of-last-word/ Given a string s consists of upper/lower-case alphabets and empty space characters ' ', re...

2016-05-21 07:44:17

阅读数:316

评论数:0

LeetCode 43. Multiply Strings(乘法)

原题网址:https://leetcode.com/problems/multiply-strings/ Given two numbers represented as strings, return multiplication of the numbers as a string....

2016-05-20 10:46:06

阅读数:405

评论数:0

LeetCode 28. Implement strStr()(实现子串定位)

原题网址:https://leetcode.com/problems/implement-strstr/ Implement strStr(). Returns the index of the first occurrence of needle in haystack, or -1 if...

2016-05-20 10:35:48

阅读数:509

评论数:0

LeetCode 14. Longest Common Prefix(最长公共前缀)

原题网址:https://leetcode.com/problems/longest-common-prefix/ Write a function to find the longest common prefix string amongst an array of strings. ...

2016-05-19 05:51:55

阅读数:524

评论数:0

LeetCode 12. Integer to Roman(阿拉伯转罗马数字)

原题网址:https://leetcode.com/problems/integer-to-roman/ Given an integer, convert it to a roman numeral. Input is guaranteed to be within the ra...

2016-05-19 05:27:37

阅读数:282

评论数:0

LeetCode 5. Longest Palindromic Substring(最长回文子串)

原题网址:https://leetcode.com/problems/longest-palindromic-substring/ Given a string S, find the longest palindromic substring in S. You may assume ...

2016-05-19 03:25:31

阅读数:324

评论数:0

LeetCode 3. Longest Substring Without Repeating Characters(最长不重复子串)

原题网址:https://leetcode.com/problems/longest-substring-without-repeating-characters/ Given a string, find the length of the longest substring with...

2016-05-01 07:12:41

阅读数:319

评论数:0

提示
确定要删除当前文章?
取消 删除
关闭
关闭