You are playing the following Flip Game with your friend: Given a string that contains only these two c…
分类:LeetCode题目解答
【leetcode】93. Restore IP Addresses 无分隔符字符串ip形式的可表示的所有合法ip集合
1. 题目 Given a string containing only digits, restore it by returning all possible valid IP address combination…
[LeetCode] Word Pattern II 词语模式之二
Given a pattern and a string str, find if strfollows the same pattern. Here fo…
[LeetCode] Power of Four 判断4的次方数
Given an integer (signed 32 bits), write a function to check whether it is a power of 4. Example: Given…
[LeetCode] Bomb Enemy 炸弹人
Given a 2D grid, each cell is either a wall 'W', an enemy 'E' or empty '0' (the number zero), return th…
[LeetCode] Kth Smallest Number in Multiplication Table 乘法表中的第K小的数字
Nearly every one have used the Multiplication Table. But could you find out the k-th sma…
[LeetCode] Rotate String 旋转字符串
We are given two strings, A and B. A shift on A consists of taking string…
LeetCode | Search in Rotated Sorted Array
题目: Suppose a sorted array is rotated at some pivot unknown to you beforehand. (i.e., 0 1 2 4 5 6 7 …
[LeetCode] Fraction to Recurring Decimal 分数转循环小数
Given two integers representing the numerator and denominator of a fraction, return the fraction in str…
[LeetCode] Count The Repetitions 计数重复个数
Define S = [s,n] as the string S which consists of n connected strings s. For example, […
LeetCode之Linked List题目汇总
Add Two Numbers You are given two linked lists representing two non-negative numbers. The digits are stored in…
[LeetCode] Create Maximum Number 创建最大数
Given two arrays of length m and n with digits 0-9 representing two numbe…