原创 LeetCode 500. Keyboard Row

Given a List of words, return the words that can be typed using letters of alphabet on only one row's of American key

原创 LeetCode 55. Jump Game

題目如下所示: Given an array of non-negative integers, you are initially positioned at the first index of the array. Each

原创 LeetCode 113. Path Sum II

Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum. For example:G

原创 LeetCode 44. Wildcard Matching

Implement wildcard pattern matching with support for '?' and '*'. '?' Matches any single character. '*' Matches any se

原创 LeetCode 208. Implement Trie (Prefix Tree)

如題所示,要求實現字典樹的插入,查找單詞,和查找前綴的方法。 Implement a trie with insert, search, and startsWith methods. Note: You may assume t

原创 LeetCode 5. Longest Palindromic Substring

Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000.

原创 LeetCode 541. Reverse String II

Given a string and an integer k, you need to reverse the first k characters for every 2k characters counting from the s

原创 LeetCode 3. Longest Substring Without Repeating Characters

Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb", t