• 欢迎访问极客公园网站,WordPress信息,WordPress教程,推荐使用最新版火狐浏览器和Chrome浏览器访问本网站,欢迎加入极客公园 QQ群
  • Git主题现已支持滚动公告栏功能,兼容其他浏览器,看到的就是咯,在后台最新消息那里用li标签添加即可。
  • 最新版Git主题已支持说说碎语功能,可像添加文章一样直接添加说说,新建说说页面即可,最后重新保存固定连接,演示地址
  • 百度口碑求点赞啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊http://koubei.baidu.com/s/gitcafe.net
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏极客公园吧
java手写双链表

java手写双链表

双链表 链表中的每个节点即指向前面一个节点,也指向后面一个节点,就像丢手绢游戏一样,每个人都手拉手 。简单来说,双向链表其实和单链表类似的,只是在定义存储结构时多了一个指向前驱结点,删除时只要更新当前的结点指向的前驱结点的下一个结点为当前结点的下一个结点即可, 头插法 这里看图就行了 这里图写错了,我这种应该不是第一次插入的场景,第一次插入头和尾结点直接……

pat 520钻石争霸赛

pat 520钻石争霸赛

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

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

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 100 using namespace std; typedef int Elem……

Merge Sort

Merge Sort

Question Write 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

Question Write 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

Question Write 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

Question Sample Input 1 5 3 8 1 7 3 9 Sample Output 1 10 Sample Input 2 4 2 1 2 2 6 Sample Output 2 6 Meaning Solution Coding Summary ……

Dictionary

Dictionary

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

Binary Search

Binary Search

Question You 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

Question You 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

Question Assume 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-se……

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

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

Question Stack Coding #include<iostream> #include<stack> #include<cstdio> #include<stdlib.h> using namespace std; st……

Doubly Linked List

Doubly Linked List

Question Your 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.……

Queue(任务题目)

Queue(任务题目)

Question Time Limit : 1 sec , Memory Limit : 131072 KB , isSolved : There are n processes in a queue. Each process has namei and timei. The round-robin scheduling handles the proce……

Stack(逆波兰数)

Stack(逆波兰数)

Question Reverse Polish notation is a notation where every operator follows all of its operands. For example, an expression (1+2)*(5+4) in the conventional Polish notation can be r……

Shell Sort

Shell Sort

Question 1 insertionSort(A, n, g) 2 for i = g to n-1 3 v = A[i] 4 j = i - g 5 while j >= 0 && A[j……

Stable Sort

Stable Sort

Question Let’s arrange a deck of cards. There are totally 36 cards of 4 suits(S, H, C, D) and 9 values (1, 2, … 9). For example, ‘eight of heart’ is represe……

Selection Sort

Selection Sort

Question Write a program of the Selection Sort algorithm which sorts a sequence A in ascending order. The algorithm should be based on the following pseudocode: ……

Bubble Sort

Bubble Sort

Question Write a program of the Bubble Sort algorithm which sorts a sequence A in ascending order. The algorithm should be based on the following pseudocode: ……