Description A peak element is an element that is greater than its neighbors. Given an i...

Description A peak element is an element that is greater than its neighbors. Given an i...
Description 实现除法(保留整数) Solution 被除数每次*2ans每次加1<<shift num
Description Given a binary tree rooted at root, the depth of each node is the shortest ...
Description 给出两个单词(start和end)和一个字典,找出从start到end的最短转换序列,输出最短序列的长度。 变换规则如下: 每次只能改变一个字母。变换...
Description Given a non-empty string s, you may delete at most one character. Judge whe...
Description 给定一个字符串,表示CPU需要执行的任务。 这个字符串由大写字母A到Z构成,不同的字母代表不同的任务。完成任务不需要按照给定的顺序。 每项任务都可以在...
Description Given two strings s and t, determine if they are both one edit distance apa...
Description Given an array of integers and an integer k, you need to find the total num...
Description 两个string的二进制数相加 Solution 简洁写法
Description 给定两个interval序列,输出所有intersection interval Solution T O(N)
Description Print a binary tree in an m*n 2D string array following these rules: The ro...
Description Given a non-negative integer, you could swap two digits at most once to get...
Description Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as ...
Description Merge k sorted linked lists and return it as one sorted list. Analyze and d...
如果只需要找一个存在的解:(使用栈即可)O(N^2) Description Remove the minimum number of invalid parentheses...
Description Given an array of integers and an integer k, you need to find the total num...
Description Clone an undirected graph. Each node in the graph contains a label and a li...
Description Write an efficient algorithm that searches for a value in an m x n matrix. ...
Description Suppose an array sorted in ascending order is rotated at some pivot unknown...