算法 leetcode刷题记录:数组-414. 第三大的数 数组的遍历 485、495、414、628 414. 第三大的数 给你一个非空数组,返回此数组中 第三大的数 。如果不存在,则返回数组中最大的数。 示例 1: 输 1,021 浏览
PAT竞赛 PAT 1009 多项式乘法 1009 Product of Polynomials This time, you are supposed to find A×B where A and B 955 浏览
PAT竞赛 PAT 1008 电梯 1008 Elevator The highest building in our city has only one elevator. A request l 975 浏览
PAT竞赛 PAT 1007 最大子序列和 1007 Maximum Subsequence Sum Given a sequence of K integers { N1, N2, ..., N**K } 929 浏览
PAT竞赛 PAT 1006 签到与签退 1006 Sign In and Sign Out At the beginning of every day, the first person who sig 609 浏览
PAT竞赛 PAT 1005 正确拼写 1005 Spell It Right Given a non-negative integer N, your task is to compute the s 439 浏览
PAT竞赛 PAT 1004 数叶子 1004 Counting Leaves A family hierarchy is usually presented by a pedigree tree. 516 浏览
C/C++基础 C++快速回顾重点——C语言基础(一) C++快速回顾重点 本文是《算法笔记》胡凡、曾磊著 的精炼总结。用于博主本人的快速复习,具有极强主观性,请酌情学习。 一、C/C++语言基础 变量 int占4字 589 浏览
PAT竞赛 PAT 1003 迪杰斯特拉算法详解 迪杰斯特拉算法 万物基于传销——硬核的半佛仙人 题目是PAT的题目,Advanced Level 1003 Emergency 代码是github的代码,原仓 464 浏览
PAT竞赛 PAT 1003 紧急救援 1003 Emergency 紧急事件 As an emergency rescue team leader of a city, you are given a 476 浏览
PAT竞赛 PAT 1002 两多项式相加 1002 A+B for Polynomials This time, you are supposed to find A+B where A and B ar 630 浏览
PAT竞赛 PAT 1001 两数相加 1001 A+B Format Calculate a+b and output the sum in standard format -- that is, t 453 浏览