• 欢迎访问废江's博客 QQ群
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏本站吧
  • 图(总目录)
  • 刷题后的总结和思想
  • 密码保护:宁静致远,凛冬将至。
  • 树(总目录)
  • 02-线性结构1 两个有序链表序列的合并
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<int> st;int main(){……

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

Queue(任务题目)

Queue(任务题目)

QuestionTime 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(逆波兰数)

QuestionReverse 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

Question1 insertionSort(A, n, g)2 for i = g to n-13 v = A[i]4 j = i - g5 while j >= 0 && A[j] > v6 A[j+g] = A……

Stable Sort

Stable Sort

QuestionLet’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

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

Bubble Sort

Bubble Sort

QuestionWrite a program of the Bubble Sort algorithm which sorts a sequence A in ascending order. The algorithm should be based on the following pseudocode:BubbleSort(A)1 for……

Insertion Sort

Insertion Sort

Write a program of the Insertion Sort algorithm which sorts a sequence A in ascending order. The algorithm should be based on the following pseudocode:for i = 1 to A.length-1k……

利用python实现易班疫情自动签到

好久没写博客了,,,算了算应该有一个多月了把。话不多说,因为这次疫情,我们需要每天易班签到,我又起不来,不过还行现在以及可以12点后签到了,之前学校设置8点前都不让签到。。。。直接贴代码了。。。#coding=utf-8from selenium import webdriverimport timechrome_driver=r&quo……

py使用myqr库生成二维码

例如:from MyQR import myqrmyqr.run(words='http://7m1.cn/02/zhaopian/index.asp', picture='pig.gif', colorized=True, save_name="pig.gif")run函数实例……

随即图片api接口

1366*768分辨率图片地址 https://api.dujin.org/bing/1366.php1920*1080分辨率图片地址 https://api.dujin.org/bing/1920.php二次元动漫 https://api.ixiaowai.cn/api/api.phpmenhear酱https://api.ixiaowai.……

网页的一些禁止操作代码

在前端开发中,F12审查元素的情况下,大家都可以随机更改一部分页面的代码,注入恶意JS等等,这种情况避免也不难,虽然还能看到一部分H5源码,但是无法修改。屏蔽F12 审查元素<script> document.onkeydown = function () { if (window.event &&am……

个性404页面

一个很个性好看的404页面<!DOCTYPE html><html lang="en" ><head><meta charset="UTF-8"><title>废江-404</title><meta name=&qu……

类和对象的提高

类和对象的提高

#this指针其作用就是指向成员函数所作用的对象非静态成员函数中可以直接使用this来代表指向该函数作用的对象的指针例如:想要将某对象的公有成员自增,写一个函数complex addone(){ this->real++;// 等价于real++; this->print();//等价于print return *this; }在主函数中:……