上一页 1 2 3 4 5 6 7 ··· 9 下一页
摘要: 基本语法常识 杂乱语法 ① JavaScript是动态语言类型,let类似于auto,自动辨认数据类型。 ② 只定义变量不进行初始化,元素类型为undefined ③ 两个整数除法会出现小数 如:5/2 == 2.5 parseInt(5/2) == 2 ③ 取模可以为小数 如:2.5 % 2 == 阅读全文
posted @ 2022-09-16 18:06 D_coding_blog 阅读(54) 评论(0) 推荐(0)
摘要: static static表示静态,是Java中的一个修饰字符,可以修饰成员方法,成员变量 静态变量 需要用到静态的情况:共享的变量或方法 静态方法 static注意事项 ①this关键字和对象相关联,往往被创建为对象(实例)的类和方法,在被调用的时候隐含一个this ②静态方法和变量与类相关联,静 阅读全文
posted @ 2022-09-12 17:21 D_coding_blog 阅读(37) 评论(0) 推荐(0)
摘要: 题目描述: 资源限制 内存限制:256.0MB C/C++时间限制:1.0s Java时间限制:3.0s Python时间限制:5.0s 问题描述 给定两个字符串,寻找这两个字串之间的最长公共子序列。 输入格式 输入两行,分别包含一个字符串,仅含有小写字母。 输出格式 最长公共子序列的长度。 样例输 阅读全文
posted @ 2022-09-11 14:02 D_coding_blog 阅读(64) 评论(0) 推荐(0)
摘要: 蓝桥杯-算法提高-1174_最大连续子段和(线性DP) 蓝桥杯-算法提高-1020_最长公共子序列(线性DP) 阅读全文
posted @ 2022-09-11 13:33 D_coding_blog 阅读(79) 评论(0) 推荐(0)
摘要: 蓝桥杯-算法提高-1174-最大连续子段和 蓝桥杯-算法提高-1020_最长公共子序列 阅读全文
posted @ 2022-09-11 13:31 D_coding_blog 阅读(44) 评论(0) 推荐(0)
摘要: 题目描述: 资源限制 内存限制:256.0MB C/C++时间限制:1.0s Java时间限制:3.0s Python时间限制:5.0s 问题描述 给出一个长为n的数列,a1,a2,……,an,求和最大的连续子序列,即找到一对(i,j),i<=j,使ai+ai+1+……+aj的和最大,输出这个和 输 阅读全文
posted @ 2022-09-11 13:27 D_coding_blog 阅读(107) 评论(0) 推荐(0)
摘要: 题目描述: Given any string of N (≥5) characters, you are asked to form the characters into the shape of U. For example, helloworld can be printed as: h d 阅读全文
posted @ 2022-09-06 20:59 D_coding_blog 阅读(43) 评论(0) 推荐(0)
摘要: 题目描述: To store English words, one method is to use linked lists and store a word letter by letter. To save some space, we may let the words share the 阅读全文
posted @ 2022-09-06 20:52 D_coding_blog 阅读(30) 评论(0) 推荐(0)
摘要: 题目描述: Being unique is so important to people on Mars that even their lottery is designed in a unique way. The rule of winning is simple: one bets on a 阅读全文
posted @ 2022-09-05 23:11 D_coding_blog 阅读(45) 评论(0) 推荐(0)
摘要: 题目描述: A traveler's map gives the distances between cities along the highways, together with the cost of each highway. Now you are supposed to write a 阅读全文
posted @ 2022-08-30 17:48 D_coding_blog 阅读(33) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 9 下一页