• 欢迎访问废江网站,承蒙遇见 QQ群
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏极客公园吧
  • 排序(总目录)
  • 图(总目录)
  • 刷题后的总结和思想
  • 树(总目录)

第二次牛客模考总结

总结第一次16分,这次34分,也算有进步了。。。话不多说,直接分析题目选择题解析4个袋子,15个球,每个袋子至少放一个球,而且袋子中的球数量不能重复,有多少种方式?A 4B 5C 6D 7他的回答: A (错误)正确答案: C参考答案:1,2,3,91,2,4,81,2,5,71,3,4,71,3,5,62,3,4,6这种……

第一次牛客模考总结

分数详情选择题详解顺序表查找一个数的算法复杂度:(n-1)/ 2 ; 快速排序的过程:选定某个基数(通常是第一个),然后i,j分别指定数组的第一个和最后一个元素,先从j开始,当j遇到比基数k小的数就和i交换位置,然后从i开始,当i遇到比基数k大的数就和j交换位置,直到i和j碰面。碰面后给基数k放在这个位置。这样得到的结果:基数k前面的数都比基数k小……

还原我的图床数据库,哦耶~

最后,经过一个多小时的折腾,终于也是捣鼓了出来,这里记录一下思路https://img.jiangkk.top……

c++接单模板

c++接单模板

c++模板 1   ……

c接单模板

c接单模板

C模板 #include<stdio.h>#include<string.h>#include<stdlib.h> /*1.别在for里面定义变量2.没有bool类型3.判断char[]相等: strcmp(c1,c2) == 0 ……

c++统计英文文章的单词数,花式输出!

c++统计英文文章的单词数,花式输出!

英文文章单词统计功能思路先拿到文件中的单词,利用split函数分隔,原理是string的find_of_first函数,第二个参数很好用,可以根据分号逗号等等任意分隔。将分隔的一个一个单词存储到vector中。然后遍历vector,存储在multimpa中,使用键值对方式,健是string,值是int,使用find函数,如果map中有则值加一,没有……

pat 520钻石争霸赛

pat 520钻石争霸赛

第一题7-1 自动编程 (5 分)输出语句是每个程序员首先要掌握的语句。Python 的输出语句很简单,只要写一个 print(X) 即可,其中 X 是需要输出的内容。本题就请你写一个自动编程机,对任何一个要输出的整数 N,给出输出这个整数的 Python 语句。输入格式:输入给出一个不超过 10 的5次方正整数输出格式:在一行中打印输出这个整……

Contest1620 – 2020-2021-2学期《Java Web 系统开发》:java基础:字符串

QuestionA import java.util.*;public class Main { public static void main(String[] args) { Scanner cin = new Scanner(System.in); ……

二叉树四种遍历,根据前中,后中遍历序列求二叉树

二叉树代码 #include <stdio.h>#include <malloc.h>#include <iostream>#define MaxSize 100using namespace std;typedef int ElemType……

10万条数据!断更一年?热爱让我们走的更远

10万条数据 memory_limit = 128M 1 memory_limit = 128M 为什么内存超出了?断更一年……

Merge Sort

Merge Sort

QuestionWrite a program of a Merge Sort algorithm implemented by the following pseudocode. You should also report the number of comparisons in the Merge function. ……

Koch Curve

Koch Curve

QuestionWrite a program which reads an integer n and draws a Koch curve based on recursive calles of depth n.The Koch curve is well known as a kind of fractals.You can draw a Ko……

Exhaustive Search

Exhaustive Search

QuestionWrite a program which reads a sequence A of n elements and an integer M, and outputs “yes” if you can make M by adding elements in A, otherwise “no”……

Allocation

Allocation

QuestionSample Input 15 381739Sample Output 110Sample Input 24 21226Sample Output 26MeaningSolutionCodingSummary……

Dictionary

Dictionary

QuestionYour task is to write a program of a simple dictionary which implements the following instructions:insert str: insert a string str in to the dictionaryfind str: if the d……

Binary Search

Binary Search

QuestionYou are given a sequence of n integers S and a sequence of different q integers T. Write a program which outputs C, the number of integers in T which are also in the set S……

Linear Search

Linear Search

QuestionYou are given a sequence of n integers S and a sequence of different q integers T. Write a program which outputs C, the number of integers in T which are also in the set S……

Areas on the Cross-Section Diagram

Areas on the Cross-Section Diagram

QuestionAssume that rain is falling endlessly in the region and the water overflowing from the region is falling in the sea at the both sides. For example, for the above cross-s……

使用STL标准库解决之前三个问题

使用STL标准库解决之前三个问题

QuestionStackCoding #include<iostream>#include<stack>#include<cstdio>#include<stdlib.h>using namespace std;stack&……

Doubly Linked List

Doubly Linked List

QuestionYour task is to implement a double linked list.Write a program which performs the following operations:insert x: insert an element with key x into the front of the list.……