摘要: Given a node from a Circular Linked List which is sorted in ascending order, write a function to insert a value insertVal into the list such that it r 阅读全文
posted @ 2020-09-24 13:51 CNoodle 阅读(241) 评论(0) 推荐(0)
摘要: Given a binary search tree (BST) with duplicates, find all the mode(s) (the most frequently occurred element) in the given BST. Assume a BST is define 阅读全文
posted @ 2020-09-24 11:39 CNoodle 阅读(201) 评论(0) 推荐(0)
摘要: Given a list of the scores of different students, items, where items[i] = [IDi, scorei] represents one score from a student with IDi, calculate each s 阅读全文
posted @ 2020-09-24 08:31 CNoodle 阅读(854) 评论(0) 推荐(0)
摘要: Given an array nums sorted in non-decreasing order, and a number target, return True if and only if target is a majority element. A majority element i 阅读全文
posted @ 2020-09-24 07:49 CNoodle 阅读(235) 评论(0) 推荐(0)