Gobang game [Code]

1, Rules of Sanzi chess game2, Program implementation idea3, Implementation of sub functions 3.1 chessboard initialization function3.2 printing chessboard function3.3 player chess function3.4 computer chess function3.5 win lose function3.6 judge whether the chessboard is full 4, Complete program5, Finally, the effect is achieved 1, ...

Posted by anoopd on Thu, 05 May 2022 12:27:41 +0300

MOOC 06 - Figure 3 six dimensional space

The "six degree space" theory is also known as the "Six Degrees of Separation" theory. This theory can be popularly stated as: "there will be no more than six people between you and any stranger, that is, you can know any stranger through up to five people." As shown in Figure 1: Although the "six dimensi ...

Posted by DragonHighLord on Wed, 04 May 2022 13:11:02 +0300

< data structure > eight sorting

catalogue         Overview of common algorithm sorting 1. Direct insert sort         Direct insert sort property summary 2. Hill sort         Hill sort properties summary 3. Select sort         Select sort property summary 4. Heap sort         Summary of heap sort characteristics 5. Bubble sorting         Bubble sorting characteristi ...

Posted by madmax on Wed, 04 May 2022 10:18:28 +0300

Data structure Exercise - linked list (linear list, stack and queue) - delete elements greater than x and less than y in the linked list / local inversion of single linked list

Article launch and subsequent updates: https://mwhls.top/1034.html For new updates, please go to mwhls.top see. There is no picture / format error. Please check the first page of the article at the top. Data structure Exercise directory Single choice questions If the head of the single linked list that does not take the lead no ...

Posted by james182 on Tue, 03 May 2022 16:20:34 +0300

Find two numbers that occur only once in a set of numbers

What I want to share with you today is a relatively interesting programming problem that I have done recently. I hope it will be of benefit to you. Without further ado, let’s get to the point. Simple version problem and solution Given an array nums containing only integers, each element will appear twice and only one number will appear ...

Posted by andymoo on Mon, 02 May 2022 22:29:16 +0300

Common properties + usage of CSS3 picture border

Note: At present, only some browsers support border image attribute; If the code is correct, but the content cannot be displayed, you can try to view it in another browser Syntax of picture border: border-image:border-image-source border-image-slice border-image-repeat Three parameters [picture address; clipping value; tiling method] For examp ...

Posted by Awesome Trinity on Mon, 02 May 2022 21:55:54 +0300

C/C + + development boost library reference manual sorting [learning notes]

Document declaration: The following materials belong to my study notes produced in the process of learning. If there are errors or omissions, please correct them. And the document will be continuously supplemented and improved with the deepening of learning in the later stage. Thank you for your reference. The notes are only for learning a ...

Posted by cavemaneca on Mon, 02 May 2022 07:19:58 +0300

[data structure] (initial stage): linear table

 ​ ✨ preface ✨ 🎓 Author: [leader] ☕ The level of bloggers is limited. If there is any error, please correct it. 📌 Opportunities are always reserved for those who are prepared. The harder you work, the luckier you are! 💦 Navigation assistant 💦 ​​​​​​​ catalogue Linear table Sequence table Concept and structure of ...

Posted by new2phpcode on Sun, 01 May 2022 20:10:01 +0300

Data structure and algorithm day 7 common sorting + bubble sorting + quick sorting + file IO + big data sorting + file merging

If you really can't understand it, memorize it by rote. If you don't want to memorize it, treasure it Chapter I bubble sorting Bubble Sort is also a simple and intuitive sorting algorithm. It repeatedly visits the sequence to be sorted, compares two elements at a time, and exchanges them if they are in the wrong order. The work of visiti ...

Posted by nitm on Sun, 01 May 2022 19:51:41 +0300

Draw a monotonic stack for solving data structure problems

Monotone stack First question The implementation class is typedef and implements this class with array or int or other classes typedef struct { int stack[10000]; int stacktop; int minstack[10000]; int minstacktop; }MinStack;//Auxiliary stack, the minimum value of stack top storage; MinStack* minStackCreate() { MinStack* ...

Posted by davitz38 on Sat, 30 Apr 2022 20:38:16 +0300