摘要: Given a paragraph and a list of banned words, return the most frequent word that is not in the list of banned words. It is guaranteed there is at leas 阅读全文
posted @ 2020-05-01 13:12 CNoodle 阅读(194) 评论(0) 推荐(0)
摘要: Given the root of a binary tree, turn the tree upside down and return the new root. You can turn a binary tree upside down with the following steps: T 阅读全文
posted @ 2020-05-01 12:39 CNoodle 阅读(283) 评论(0) 推荐(0)
摘要: A valid IP address consists of exactly four integers separated by single dots. Each integer is between 0 and 255 (inclusive) and cannot have leading z 阅读全文
posted @ 2020-05-01 12:02 CNoodle 阅读(468) 评论(0) 推荐(0)
摘要: Given the head of a singly linked list and two integers left and right where left <= right, reverse the nodes of the list from position left to positi 阅读全文
posted @ 2020-05-01 08:23 CNoodle 阅读(499) 评论(0) 推荐(0)
摘要: Given a string s, return true if the s can be palindrome after deleting at most one character from it. Example 1: Input: s = "aba" Output: true Exampl 阅读全文
posted @ 2020-05-01 05:52 CNoodle 阅读(185) 评论(0) 推荐(0)
摘要: Given a binary tree where each path going from the root to any leaf form a valid sequence, check if a given string is a valid sequence in such binary 阅读全文
posted @ 2020-05-01 04:21 CNoodle 阅读(660) 评论(0) 推荐(0)