上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 34 下一页
摘要: 地址:https://leetcode-cn.com/problems/destination-city/ <?php /** 1436. 旅行终点站 给你一份旅游线路图,该线路图中的旅行线路用数组 paths 表示,其中 paths[i] = [cityAi, cityBi] 表示该线路将会从 c 阅读全文
posted @ 2020-09-18 18:20 花花妹子。 阅读(119) 评论(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 花花妹子。 阅读(58) 评论(0) 推荐(0)
摘要: 地址:https://leetcode-cn.com/problems/split-a-string-in-balanced-strings/ <?php /** 在一个「平衡字符串」中,'L' 和 'R' 字符的数量是相同的。 给出一个平衡字符串 s,请你将它分割成尽可能多的平衡字符串。 返回可以 阅读全文
posted @ 2020-09-18 14:30 花花妹子。 阅读(127) 评论(0) 推荐(0)
摘要: 地址:https://leetcode-cn.com/problems/shuffle-string/ <?php /** 1528. 重新排列字符串 给你一个字符串 s 和一个 长度相同 的整数数组 indices 。 请你重新排列字符串 s ,其中第 i 个字符需要移动到 indices[i] 阅读全文
posted @ 2020-09-18 11:41 花花妹子。 阅读(111) 评论(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 花花妹子。 阅读(108) 评论(0) 推荐(0)
摘要: 地址:https://leetcode-cn.com/problems/minimum-time-visiting-all-points/ <?php /** 平面上有 n 个点,点的位置用整数坐标表示 points[i] = [xi, yi]。请你计算访问所有这些点需要的最小时间(以秒为单位)。 阅读全文
posted @ 2020-09-18 10:22 花花妹子。 阅读(96) 评论(0) 推荐(0)
摘要: 地址:https://leetcode-cn.com/problems/matrix-diagonal-sum/ <?php /** 1572. 矩阵对角线元素的和 给你一个正方形矩阵 mat,请你返回矩阵对角线元素的和。 请你返回在矩阵主对角线上的元素和副对角线上且不在主对角线上元素的和。 示例 阅读全文
posted @ 2020-09-17 18:08 花花妹子。 阅读(398) 评论(0) 推荐(0)
摘要: 地址:https://leetcode-cn.com/problems/delete-node-in-a-linked-list/ <?php /** 237. 删除链表中的节点 请编写一个函数,使其可以删除某个链表中给定的(非末尾)节点。传入函数的唯一参数为 要被删除的节点 。 现有一个链表 -- 阅读全文
posted @ 2020-09-17 18:00 花花妹子。 阅读(113) 评论(0) 推荐(0)
摘要: 地址:https://leetcode-cn.com/problems/nGK0Fy/ <?php /** LCP 17. 速算机器人 小扣在秋日市集发现了一款速算机器人。店家对机器人说出两个数字(记作 x 和 y),请小扣说出计算指令: "A" 运算:使 x = 2 * x + y; "B" 运算 阅读全文
posted @ 2020-09-17 17:52 花花妹子。 阅读(127) 评论(0) 推荐(0)
摘要: 地址:https://leetcode-cn.com/problems/defanging-an-ip-address/ <?php /** 1108. IP 地址无效化 给你一个有效的 IPv4 地址 address,返回这个 IP 地址的无效化版本。 所谓无效化 IP 地址,其实就是用 "[.] 阅读全文
posted @ 2020-09-17 17:16 花花妹子。 阅读(97) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 34 下一页