10 2021 档案

摘要:charAt(i) 函数 是获取字符串中i位置的字符str.charAt(i)的意思是第i个字符在字符串str中所占的位置,输出的是数字 阅读全文
posted @ 2021-10-29 22:06 张月琼 阅读(90) 评论(0) 推荐(0) 编辑
摘要:一、实践题目 编辑距离问题 (25 分) 设A和B是2个字符串。要用最少的字符操作将字符串A转换为字符串B。这里所说的字符操作包括 (1)删除一个字符; (2)插入一个字符; (3)将一个字符改为另一个字符。 将字符串A变换为字符串B所用的最少字符操作数称为字符串A到 B的编辑距离,记为d(A,B) 阅读全文
posted @ 2021-10-25 23:36 张月琼 阅读(44) 评论(0) 推荐(0) 编辑
摘要:一、实践题目 maximum number in a unimodal array You are a given a unimodal array of n distinct elements, meaning that its entries are in increasing order up 阅读全文
posted @ 2021-10-02 13:32 张月琼 阅读(56) 评论(0) 推荐(0) 编辑