String

­

String and StringBuffer

Introduce string and string buffer

November 14th, 2015|Categories: DS and Algorithms, String|Tags: , |

[Leetcode] Add Binary

Given two binary strings, return their sum (also a binary string).

November 14th, 2015|Categories: DS and Algorithms, Math, String|Tags: , , , , |

[Leetcode] Count and Say

Get the nth sequence of the count-and-say sequences.

November 14th, 2015|Categories: DS and Algorithms, String|Tags: , , , |

[Leetcode] 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.

November 14th, 2015|Categories: DS and Algorithms, String|Tags: , , , |

[Leetcode] Valid Parentheses

Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.

November 14th, 2015|Categories: DS and Algorithms, Stack, String|Tags: , , , |

[Leetcode] Valid Palindrome

Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.

November 14th, 2015|Categories: DS and Algorithms, String|Tags: , , , |

[Leetcode] Compare Version Numbers

Compare two version numbers version1 and version2.

November 14th, 2015|Categories: DS and Algorithms, String|Tags: , , , |

[Leetcode] Longest Common Prefix

Find the longest common prefix string amongst an array of strings.

November 14th, 2015|Categories: DS and Algorithms, String|Tags: , , , |

[Leetcode] Largest Number

Given a list of non negative integers, arrange them such that they form the largest number.

November 14th, 2015|Categories: DS and Algorithms, Sorting, String|Tags: , , , |

[Leetcode] Summary Ranges

Given a sorted integer array without duplicates, return the summary of its ranges.

November 14th, 2015|Categories: Array, DS and Algorithms, String|Tags: , , , |

[Leetcode] ZigZag Conversion

Convert a string to the ZigZag pattern

December 4th, 2015|Categories: Array, DS and Algorithms, String|Tags: , , , |

[Leetcode] String to Integer (atoi)

Implement atoi to convert a string to an integer.

December 4th, 2015|Categories: DS and Algorithms, Math, String|Tags: , , , |

[Leetcode] Longest Palindromic Substring

Given a string S, find the longest palindromic substring in S

December 4th, 2015|Categories: DS and Algorithms, String|Tags: , , , |

[Leetcode] Valid Anagram

Given two strings s and t, write a function to determine if t is an anagram of s.

December 7th, 2015|Categories: DS and Algorithms, Hash, String|Tags: , , , |

[Leetcode] Word Pattern

Given a pattern and a string str, find if str follows the same pattern.

December 11th, 2015|Categories: DS and Algorithms, Hash, String|Tags: , , , |

[Leetcode] Bulls and Cows

Bulls and Cows is an interesting problem that could be solved by hash table in an interesting way.

December 11th, 2015|Categories: DS and Algorithms, Hash, String|Tags: , , , |

[Leetcode] Implement strStr()

Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.

December 12th, 2015|Categories: DS and Algorithms, String|Tags: , , , |

[Leetcode] Additive Number

Additive number is a string whose digits can form additive sequence...

December 15th, 2015|Categories: DS and Algorithms, String|Tags: , , , |