Algorithm

Algorithm



  • Home
  • Algorithm
    • LeetCode
    • LintCode
    • HDUOJ
  • Online Judge
  • Archive


String

String

[LeetCode 58] Length of Last Word [Java]

 2018-01-29

1. Description Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string...


 NOTHING
 733 views

String

[LeetCode 38] Count and Say[Java]

 2018-01-05

1. Description The count-and-say sequence is the sequence of integers with the first five terms as following: 1.1 2. 11 3. 21 4. 1211 5....


 NOTHING
 715 views

String

[LeetCode 28] Implement strStr() [Java]

 2017-11-24

1. Description Implement strStr(). Return the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack. 2. Exam...


 NOTHING
 651 views

String

[LeetCode 224] Basic Calculator [Java]

 2017-11-07

1. Description Implement a basic calculator to evaluate a simple expression string. The expression string may contain open ( and closing parenthese...


 NOTHING
 630 views

String

[LeetCode 227] Basic Calculator II [Java]

 2017-11-07

1. Description Implement a basic calculator to evaluate a simple expression string. The expression string contains only non-negative integers, +, -...


 NOTHING
 876 views

String

[LeetCode 26] Remove Duplicates from Sorted Array [Java] [Runtime : 13 MS]

 2017-10-20

1. Description Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length. Do not alloc...


 NOTHING
 596 views

String
leetcode

[LeetCode 567] Permutation in String [Java]

 2017-09-23

1. Description Given two strings s1 and s2, write a function to return true if s2 contains the permutation of s1. In other words, one of the first ...


 NOTHING
 1,170 views

String
leetcode

[LeetCode 591] Tag Validator [Java] [Runtime : 19MS]

 2017-09-18

1. Description Given a string representing a code snippet, you need to implement a tag validator to parse the code and return whether it is valid. ...


 NOTHING
 738 views

String

[LeetCode 30] Substring with Concatenation of All Words [Java] [Runtime : 23 MS]

 2017-06-10

1. Description You are given a string, s, and a list of words, words, that are all of the same length. Find all starting indices of substring(s) in...


 NOTHING
 901 views

Copyright © 2017- 2023. DunSO All rights reserved.

  • Home
  • Algorithm
    • LeetCode
    • LintCode
    • HDUOJ
  • Online Judge
  • Archive

What do you want to search...

