上一页 1 ··· 30 31 32 33 34 35 36 37 38 ··· 64 下一页
摘要: Given an array of unique integers, arr, where each integer arr[i] is strictly greater than 1. We make a binary tree using these integers, and each num 阅读全文
posted @ 2020-11-26 07:33 CNoodle 阅读(282) 评论(0) 推荐(0)
摘要: Implement a basic calculator to evaluate a simple expression string. The expression string contains only non-negative integers, '+', '-', '*', '/' ope 阅读全文
posted @ 2020-11-26 02:23 CNoodle 阅读(362) 评论(0) 推荐(0)
摘要: Given the binary representation of an integer as a string s, return the number of steps to reduce it to 1 under the following rules: If the current nu 阅读全文
posted @ 2020-11-23 17:23 CNoodle 阅读(382) 评论(0) 推荐(0)
摘要: Given a binary tree root and a linked list with head as the first node. Return True if all the elements in the linked list starting from the head corr 阅读全文
posted @ 2020-11-23 07:00 CNoodle 阅读(410) 评论(0) 推荐(0)
摘要: Given two strings: s1 and s2 with the same size, check if some permutation of string s1 can break some permutation of string s2 or vice-versa. In othe 阅读全文
posted @ 2020-11-21 00:59 CNoodle 阅读(181) 评论(0) 推荐(0)
摘要: Given the head of a singly linked list and an integer k, split the linked list into k consecutive linked list parts. The length of each part should be 阅读全文
posted @ 2020-11-19 01:08 CNoodle 阅读(186) 评论(0) 推荐(0)
摘要: There is a special square room with mirrors on each of the four walls. Except for the southwest corner, there are receptors on each of the remaining c 阅读全文
posted @ 2020-11-18 03:42 CNoodle 阅读(165) 评论(0) 推荐(0)
摘要: We are given a matrix with R rows and C columns has cells with integer coordinates (r, c), where 0 <= r < R and 0 <= c < C. Additionally, we are given 阅读全文
posted @ 2020-11-17 15:44 CNoodle 阅读(190) 评论(0) 推荐(0)
摘要: Given an array nums of integers, return the length of the longest arithmetic subsequence in nums. Note that: A subsequence is an array that can be der 阅读全文
posted @ 2020-11-14 09:49 CNoodle 阅读(329) 评论(0) 推荐(0)
摘要: Given an m x n binary matrix mat, return the number of special positions in mat. A position (i, j) is called special if mat[i][j] == 1 and all other e 阅读全文
posted @ 2020-11-14 00:58 CNoodle 阅读(343) 评论(0) 推荐(0)
摘要: Given a string s, return all the palindromic permutations (without duplicates) of it. Return an empty list if no palindromic permutation could be form 阅读全文
posted @ 2020-11-13 12:11 CNoodle 阅读(234) 评论(0) 推荐(0)
摘要: Given an array of integers nums, half of the integers in nums are odd, and the other half are even. Sort the array so that whenever nums[i] is odd, i  阅读全文
posted @ 2020-11-12 02:59 CNoodle 阅读(143) 评论(0) 推荐(0)
摘要: Given the coordinates of four points in 2D space p1, p2, p3 and p4, return true if the four points construct a square. The coordinate of a point pi is 阅读全文
posted @ 2020-11-12 02:10 CNoodle 阅读(227) 评论(0) 推荐(0)
摘要: You are given an n x n binary matrix grid where 1 represents land and 0 represents water. An island is a 4-directionally connected group of 1's not co 阅读全文
posted @ 2020-11-12 01:22 CNoodle 阅读(280) 评论(0) 推荐(0)
摘要: You are given an integer array cost where cost[i] is the cost of ith step on a staircase. Once you pay the cost, you can either climb one or two steps 阅读全文
posted @ 2020-11-10 02:24 CNoodle 阅读(135) 评论(0) 推荐(0)
摘要: Given the root of a binary tree, find the maximum value v for which there exist different nodes a and b where v = |a.val - b.val| and a is an ancestor 阅读全文
posted @ 2020-11-10 01:08 CNoodle 阅读(189) 评论(0) 推荐(0)
摘要: On an NxN chessboard, a knight starts at the r-th row and c-th column and attempts to make exactly K moves. The rows and columns are 0 indexed, so the 阅读全文
posted @ 2020-11-09 02:28 CNoodle 阅读(319) 评论(0) 推荐(0)
摘要: A polynomial linked list is a special type of linked list where every node represents a term in a polynomial expression. Each node has three attribute 阅读全文
posted @ 2020-11-08 03:50 CNoodle 阅读(642) 评论(0) 推荐(0)
摘要: Given an array of integers nums and an integer threshold, we will choose a positive integer divisor, divide all the array by it, and sum the division' 阅读全文
posted @ 2020-11-07 13:43 CNoodle 阅读(241) 评论(0) 推荐(0)
摘要: Given an integer array arr. You have to sort the integers in the array in ascending order by the number of 1's in their binary representation and in c 阅读全文
posted @ 2020-11-06 01:49 CNoodle 阅读(623) 评论(0) 推荐(0)
上一页 1 ··· 30 31 32 33 34 35 36 37 38 ··· 64 下一页