上一页 1 2 3 4 5 6 7 8 9 10 ··· 33 下一页
摘要: Some people will make friend requests. The list of their ages is given and ages[i] is the age of the ith person. Person A will NOT friend request pers 阅读全文
posted @ 2020-03-30 00:18 xuan_abc 阅读(215) 评论(0) 推荐(0)
摘要: Given two binary strings, return their sum (also a binary string). The input strings are both non-empty and contains only characters 1 or 0. Example 1 阅读全文
posted @ 2020-03-29 10:52 xuan_abc 阅读(178) 评论(0) 推荐(0)
摘要: Given a string, your task is to count how many palindromic substrings in this string. The substrings with different start indexes or end indexes are c 阅读全文
posted @ 2020-03-29 10:07 xuan_abc 阅读(123) 评论(0) 推荐(0)
摘要: Given an array of integers and an integer k, you need to find the total number of continuous subarrays whose sum equals to k. Example Example1 Input: 阅读全文
posted @ 2020-03-28 11:21 xuan_abc 阅读(113) 评论(0) 推荐(0)
摘要: Given two words (beginWord and endWord), and a dictionary's word list, find all shortest transformation sequence(s) from beginWord to endWord, such th 阅读全文
posted @ 2020-03-28 04:20 xuan_abc 阅读(184) 评论(0) 推荐(0)
摘要: Given a non-empty binary search tree and a target value, find k values in the BST that are closest to the target. Example Example 1: Input: {1} 0.0000 阅读全文
posted @ 2020-03-26 09:52 xuan_abc 阅读(236) 评论(0) 推荐(0)
摘要: Given a binary search tree and a node in it, find the in-order predecessor of that node in the BST. Example Example1 Input: root = {2,1,3}, p = 1 Outp 阅读全文
posted @ 2020-03-26 08:38 xuan_abc 阅读(256) 评论(0) 推荐(0)
摘要: On a 3x3 board, there are 8 tiles represented by the integers 1 through 8, and an empty square represented by 0. A move consists of choosing 0 and a 4 阅读全文
posted @ 2020-03-26 03:52 xuan_abc 阅读(395) 评论(0) 推荐(0)
摘要: You have a lock in front of you with 4 circular wheels. Each wheel has 10 slots: '0', '1', '2', '3', '4', '5', '6', '7', '8', '9'. The wheels can rota 阅读全文
posted @ 2020-03-26 03:04 xuan_abc 阅读(182) 评论(0) 推荐(0)
摘要: Given a 2D board containing 'X' and 'O', capture all regions surrounded by 'X'. A region is captured by flipping all 'O''s into 'X''s in that surround 阅读全文
posted @ 2020-03-25 11:16 xuan_abc 阅读(116) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 10 ··· 33 下一页