摘要: 每次测试的时限 1秒 每次测试的内存限制 256兆字节 输入 标准输入 输出 标准输出 原题:原题链接 In the 2022 ye... 阅读全文
posted @ 2021-01-24 13:34 夜枫之家 阅读(165) 评论(0) 推荐(0)
摘要: You are given a positive integer n. In one move, you can increase ... 阅读全文
posted @ 2020-12-12 17:51 夜枫之家 阅读(81) 评论(0) 推荐(0)
摘要: We have a secret array. You don’t know this array and you have to ... 阅读全文
posted @ 2020-12-12 17:37 夜枫之家 阅读(53) 评论(0) 推荐(0)
摘要: 现有村落间道路的统计数据表中,列出了有可能建设成标准公路的若干条道路的成本,求使每个村落都有公路连通所需要的最低成本。 输入格式: ... 阅读全文
posted @ 2020-12-12 17:20 夜枫之家 阅读(91) 评论(0) 推荐(0)
摘要: @author:yefeng In 2100, since the sea level rise, most of the citi... 阅读全文
posted @ 2020-12-12 17:13 夜枫之家 阅读(110) 评论(0) 推荐(0)
摘要: @author 夜枫 题目: 输入一个字符串Str,输出Str里最长回文子串的长度。 回文串:指aba、abba、cccbccc、a... 阅读全文
posted @ 2020-12-04 16:43 夜枫之家 阅读(82) 评论(0) 推荐(0)
摘要: @author 夜枫 题目: Given a satellite image of some sea region, your ta... 阅读全文
posted @ 2020-11-21 12:09 夜枫之家 阅读(88) 评论(0) 推荐(0)
摘要: @author 夜枫 编辑距离,又称Levenshtein距离(也叫做Edit Distance),是指两个字串之间,由一个转成另一... 阅读全文
posted @ 2020-11-09 13:03 夜枫之家 阅读(99) 评论(0) 推荐(0)
摘要: 首先了解下什么是最短路径算法-----Dijkstra算法详解 来一条传送门-> 最短路径问题—Dijkstra算法详解 看到这里相... 阅读全文
posted @ 2020-10-26 20:57 夜枫之家 阅读(110) 评论(0) 推荐(0)
摘要: 东软学习小组成员:夜枫 最近学习数据结构与算法,讲到链表和栈,为了满足自己的好奇心和小小的成就感还有巩固知识,便根据栈的特点和功能,... 阅读全文
posted @ 2020-09-27 16:52 夜枫之家 阅读(83) 评论(0) 推荐(0)