01 2019 档案
摘要:Description On a table are cards, with a positive integer printed on the front and back of each card (possibly different). We flip any number of cards
阅读全文
摘要:Description Given an array of non negative integers, half of the integers in A are odd, and half of the integers are even. Sort the array so that when
阅读全文
摘要:Description A binary tree is univalued if every node in the tree has the same value. Return true if and only if the given tree is univalued. Example 1
阅读全文
摘要:Description In a array of size , there are unique elements, and exactly one of these elements is repeated N times. Return the element repeated times.
阅读全文
摘要:Description Given an array of integers sorted in non decreasing order, return an array of the squares of each number, also in sorted non decreasing or
阅读全文
摘要:Description Given an array of 2n integers, your task is to group these integers into n pairs of integer, say (a1, b1), (a2, b2), ..., (an, bn) which m
阅读全文
摘要:Description Given the root node of a binary search tree (BST) and a value to be inserted into the tree, insert the value into the BST. Return the root
阅读全文
摘要:Description The Fibonacci numbers , commonly denoted form a sequence, called the Fibonacci sequence , such that each number is the sum of the two prec
阅读全文
摘要:Description Given the node of a binary search tree, return the sum of values of all nodes with value between and (inclusive). The binary search tree i
阅读全文