当前位置:网站首页>Bubble ranking and running for president
Bubble ranking and running for president
2022-04-22 03:28:00 【leotntt】
Preface + Catalog :
Just two questions this time , The topic is not much , It's the essence . Bubble sort and Running for President It represents two kinds of questions , Learn to abolish them , I'm not afraid to see you again ! Learn a little every day , There are so many things , Learn a little less . come on. , Struggling everyone !

Catalog
🧶 Learn the moves before doing the problem :
Learn the moves before doing the problem :
Bubble sort :
Explain
thought : Compare two adjacent elements , If the conditions are met , swapping
When to use bubble sorting ? There's an unordered array , Put it in order
How to use it? :
Ascending :
Descending :
Particular attention :
1. If there is n Bubble sort elements , Then... Will be carried out in total n-1 Trip to sort
2. A sequence needs to be n-1-i Comparison of secondary elements ( i Is the subscript of an element in an array )
Running for President :
Explain
There are strings AAABBB, Find out A The number of ,B The number of , That's the kind of question
1.gets() Function :
You need to create an array
When reading a string , Read the whole line
open msdn,

Use gets() function , We need to create an array ;
2.getchar() To write :
You can't use an array
When reading a string , Read character by character
Last question, last question :
Compete for the top five
subject :
Practice one :
Practice two :
Running for President :
subject :
Practice one :
Practice two :
Practice three :
Conclusion :
If it helps you , Don't forget it give the thumbs-up + Focus on Oh , Crab
If it helps you , Don't forget it give the thumbs-up + Focus on Oh , Crab
If it helps you , Don't forget it give the thumbs-up + Focus on Oh , Crab

版权声明
本文为[leotntt]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220325257773.html
边栏推荐
- Record of problems in socket multicast
- The original test engineers who were promoted and raised were good at interface testing
- Computer wechat built-in browser turns on debugging mode
- Copy the content of Baidu Library by releasing the monitoring through the browser console
- The wangeditor rich text editor uses and converts the content of the editor to JSON format
- Implementation of MySQL dblink and solution of @ problem in password
- Oracle 11g enterprise installation tutorial
- Database Basics
- ECMAScript 6 -- Deconstruction and assignment of variables
- JDBC使用预编译执行DQL语句输出都是占位符内容,这是为什么呢?
猜你喜欢

Deep learning and image recognition: principle and practice notes day_ fifteen

Memory distribution of stm32

Saas. Extended field custom field

Ink back words -- extract all its offline words through the installation package

An article gives you a preliminary understanding of the basic knowledge of C language operators

Guitar music theory finishing

Can Chrome browser + postman do interface testing like this?

Go language practice ------ 31 ------ live broadcast architecture and audio and video call of streaming media architecture design (common streaming media protocol interpretation)

Quantitative evaluation rules for security evaluation of commercial password applications (2021 Edition)

Using pytest to play with data-driven testing framework
随机推荐
2021-10-26 agreement
On August 16, 2021, a bug in Zhengfang educational administration system was accidentally found
【C】 Guess the number, shut down the applet, and practice some branch loops
College English vocabulary analysis Chinese University MOOC Huazhong University of science and technology
第9章 内核同步介绍
隊列使用問題總結 queue:work和queue:listen的區別
解决方案| 快对讲调度系统:高效协作
List of persons elected to IEEE fellow in 2022
关于TP5出现的一些错误
Summarize the differences between queue: work and queue: listen
js力扣每日一题(2022/4/21)---824.山羊拉丁文
What others write is called a blog, and what they write is called notes
Rasa dialogue robot serial 1 lesson 121: the whole process demonstration of e-commerce retail dialogue robot operation process debugging of Rasa dialogue robot debugging project - 1
[Leetcode每日一题]824. 山羊拉丁文
The mountain is high and the road is far away, fearing no danger
How to use explicit waiting and implicit waiting in web automation testing?
1 ActiveMQ introduction and installation
类unix系统中history命令不显示行号的5种方法
Baidu offline map research and development -- laravel framework
税法18个税种全总结附记忆小口诀











