LeetCode
文章平均质量分 55
周末不上车
这个作者很懒,什么都没留下…
展开
-
[LeetCode]Top Interview Questions/Easy Collection/Valid Anagram
Valid Anagram Given two strings s and t , write a function to determine if t is an anagram of s. Example 1: Input: s = “anagram”, t = “nagaram” Output: true Example 2: Input: s = “rat”, t = “car...原创 2018-08-14 19:58:53 · 182 阅读 · 0 评论 -
[LeetCode]Top Interview Questions/Easy Collection/Valid Palindrome
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. Note: For the purpose of this problem, we define empty string as valid palindrome. Examp...原创 2018-08-16 19:51:31 · 173 阅读 · 0 评论 -
[LeetCode]Top Interview Questions/Easy Collection/String to Integer (atoi)
Implement atoi which converts a string to an integer. The function first discards as many whitespace characters as necessary until the first non-whitespace character is found. Then, starting from this...原创 2018-09-23 19:31:38 · 151 阅读 · 0 评论