PROBLEM SET
题库
按难度与知识点筛选,找到适合的练习题。
题目列表
共 67434 题
A14972
Lucky?
普及/提高-
--
A14973
Sorting Pancakes
普及/提高-
--
A67626
对下面两个函数,说法错误的是( )。1 int factorialA(int n) {
2025年
--
--
A14974
Vlad and Unfinished Business
普及/提高-
--
A14975
Replace With the Previous, Minimize
普及/提高-
--
A67625
考虑以下C++代码实现的快速排序算法,将数据从小到大排序,则横线上应填的最佳代码是( )。1 int partition(vector<int>& arr, int low, int high) {
2025年
--
--
A14976
Vertical Paths
普及/提高-
--
A67624
若用二分法在[1,100]内猜数,最多需要猜( )次。
2025年
--
--
A14977
Detective Task
普及/提高-
--
A67623
下面代码实现了二分查找算法,在数组arr找到目标元素target的位置,则横线上能填写的最佳代码 是( )。1 int binarySearch(int arr[], int left, int right, int target) {
2025年
--
--
A14978
Make It Increasing
普及/提高-
--
A14979
Food for Animals
普及/提高-
--
A67622
函数int findMax(int arr[],int low,int high)计算数组中最大元素,其中数组arr从索引low到high,( )正确实现了分治逻辑。
2025年
--
--
A14980
Remove Directed Edges
普及/提高-
--
A67621
小杨编写了一个如下的高精度乘法函数,则横线上应填写的代码为( )。1 vector<int> multiply(vector<int>& a, vector<int>& b) {
2025年
--
--
A14981
Desktop Rearrangement
普及/提高-
--
A67620
单链表中删除某个结点p(非尾结点),但不知道头结点,可行的操作是将p的值设为p->next的值,然后删除p->next。
2025年
--
--
A14982
Breaking the Wall
普及/提高-
--
A14983
A-B-C Sort
普及/提高-
--
A14984
Infinite Replacement
普及/提高-
--