数组的巩固练习

image-20221030170258216

这里的x是一维数组,y是二维数组,并且image-20221030170447869是给x和y分别赋值

杨辉三角

image-20221030170758474

image-20221031104530699

image-20221031104547297

数组的常见算法

image-20221031105743708

随机数公式image-20221102100629389

image-20221109103525941

数组的复制

image-20221102102000513数组的复制,循环和查找

image-20221102102221947

中间变量法,首尾交换法

image-20221102102528555

二分法查找算法

image-20221102110340769

image-20221102110402722

排序算法:冒泡排序

image-20221107201532147

快速排序

image-20221107202127692

Arrays工具类的使用

image-20221109101026041

image-20221109101111754

image-20221109101305988

image-20221109101415211

(fill是将数组值全部修改为设定值)

image-20221109101525045

image-20221109101603129

(这个只能查找已经排序的数组)

数组编写的常见错误

image-20221109101852664

image-20221109101921930

(空指针异常)

image-20221109102028987

image-20221109102110239

image-20221109102147626

Donate
  • Copyright: Copyright is owned by the author. For commercial reprints, please contact the author for authorization. For non-commercial reprints, please indicate the source.
  • Copyrights © 2023 Langxecho
  • Visitors: | Views:

请我喝杯咖啡吧~

支付宝
微信