摘要: 地址:https://leetcode-cn.com/problems/destination-city/ <?php /** 1436. 旅行终点站 给你一份旅游线路图,该线路图中的旅行线路用数组 paths 表示,其中 paths[i] = [cityAi, cityBi] 表示该线路将会从 c 阅读全文
posted @ 2020-09-18 18:20 花花妹子。 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 地址:https://leetcode-cn.com/problems/lian-biao-zhong-dao-shu-di-kge-jie-dian-lcof/ <?php /** 剑指 Offer 22. 链表中倒数第k个节点 输入一个链表,输出该链表中倒数第k个节点。为了符合大多数人的习惯,本 阅读全文
posted @ 2020-09-18 17:27 花花妹子。 阅读(55) 评论(0) 推荐(0) 编辑
摘要: 地址:https://leetcode-cn.com/problems/split-a-string-in-balanced-strings/ <?php /** 在一个「平衡字符串」中,'L' 和 'R' 字符的数量是相同的。 给出一个平衡字符串 s,请你将它分割成尽可能多的平衡字符串。 返回可以 阅读全文
posted @ 2020-09-18 14:30 花花妹子。 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 地址:https://leetcode-cn.com/problems/shuffle-string/ <?php /** 1528. 重新排列字符串 给你一个字符串 s 和一个 长度相同 的整数数组 indices 。 请你重新排列字符串 s ,其中第 i 个字符需要移动到 indices[i] 阅读全文
posted @ 2020-09-18 11:41 花花妹子。 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 地址:https://leetcode-cn.com/problems/number-of-students-doing-homework-at-a-given-time/ <?php /** 1450. 在既定时间做作业的学生人数 给你两个整数数组 startTime(开始时间)和 endTime 阅读全文
posted @ 2020-09-18 10:36 花花妹子。 阅读(100) 评论(0) 推荐(0) 编辑
摘要: 地址:https://leetcode-cn.com/problems/minimum-time-visiting-all-points/ <?php /** 平面上有 n 个点,点的位置用整数坐标表示 points[i] = [xi, yi]。请你计算访问所有这些点需要的最小时间(以秒为单位)。 阅读全文
posted @ 2020-09-18 10:22 花花妹子。 阅读(91) 评论(0) 推荐(0) 编辑