随笔分类 -  算法学习打卡

上一页 1 2 3 4 5 6 ··· 10 下一页
摘要:地址:https://leetcode-cn.com/problems/squares-of-a-sorted-array/ <?php /** * Created by PhpStorm. * User: huahua * Date: 2020/10/19 * Time: 下午4:52 给定一个按 阅读全文
posted @ 2020-10-19 16:53 花花妹子。 阅读(100) 评论(0) 推荐(0)
摘要:地址:https://leetcode-cn.com/problems/binary-tree-inorder-traversal/ <?php /** * Created by PhpStorm. * User: huahua * Date: 2020/10/15 * Time: 上午9:15 给 阅读全文
posted @ 2020-10-15 09:18 花花妹子。 阅读(62) 评论(0) 推荐(0)
摘要:地址:https://leetcode-cn.com/problems/add-without-plus-lcci/ <?php /** * Created by PhpStorm. * User: huahua * Date: 2020/10/13 * Time: 下午1:33 面试题 17.01 阅读全文
posted @ 2020-10-13 13:34 花花妹子。 阅读(75) 评论(0) 推荐(0)
摘要:地址:https://leetcode-cn.com/problems/contiguous-sequence-lcci/ <?php/** * Created by PhpStorm. * User: huahua * Date: 2020/10/13 * Time: 上午11:44面试题 16. 阅读全文
posted @ 2020-10-13 11:45 花花妹子。 阅读(88) 评论(0) 推荐(0)
摘要:地址:https://leetcode-cn.com/problems/happy-number/ <?php /** * Created by PhpStorm. * User: huahua * Date: 2020/10/13 * Time: 上午10:43 202. 快乐数 编写一个算法来判 阅读全文
posted @ 2020-10-13 10:44 花花妹子。 阅读(72) 评论(0) 推荐(0)
摘要:地址:https://leetcode-cn.com/problems/find-all-numbers-disappeared-in-an-array/ <?php /** * Created by PhpStorm. * User: huahua * Date: 2020/10/12 * Tim 阅读全文
posted @ 2020-10-12 18:14 花花妹子。 阅读(46) 评论(0) 推荐(0)
摘要:地址:https://leetcode-cn.com/problems/element-appearing-more-than-25-in-sorted-array/ <?php /** * Created by PhpStorm. * User: huahua * Date: 2020/10/12 阅读全文
posted @ 2020-10-12 18:04 花花妹子。 阅读(97) 评论(0) 推荐(0)
摘要:地址:https://leetcode-cn.com/problems/two-sum-ii-input-array-is-sorted/ <?php /** * Created by PhpStorm. * User: huahua * Date: 2020/10/12 * Time: 下午5:4 阅读全文
posted @ 2020-10-12 17:50 花花妹子。 阅读(59) 评论(0) 推荐(0)
摘要:地址:https://leetcode-cn.com/problems/find-majority-element-lcci/ <?php /** * Created by PhpStorm. * User: huahua * Date: 2020/10/10 * Time: 下午3:53 面试题 阅读全文
posted @ 2020-10-10 15:54 花花妹子。 阅读(118) 评论(0) 推荐(0)
摘要:地址:https://leetcode-cn.com/problems/unique-email-addresses/ <?php /** * Created by PhpStorm. * User: huahua * Date: 2020/10/10 * Time: 下午3:04 * 929. 独 阅读全文
posted @ 2020-10-10 15:05 花花妹子。 阅读(129) 评论(0) 推荐(0)
摘要:地址:https://leetcode-cn.com/problems/qi-wang-ge-shu-tong-ji/ <?php /** 某互联网公司一年一度的春招开始了,一共有 n 名面试者入选。每名面试者都会提交一份简历,公司会根据提供的简历资料产生一个预估的能力值,数值越大代表越有可能通过面 阅读全文
posted @ 2020-09-30 16:54 花花妹子。 阅读(114) 评论(0) 推荐(0)
摘要:地址:https://leetcode-cn.com/problems/fizz-buzz/ <?php /** 写一个程序,输出从 1 到 n 数字的字符串表示。 1. 如果 n 是3的倍数,输出“Fizz”; 2. 如果 n 是5的倍数,输出“Buzz”; 3.如果 n 同时是3和5的倍数,输出 阅读全文
posted @ 2020-09-30 16:47 花花妹子。 阅读(290) 评论(0) 推荐(0)
摘要:地址:https://leetcode-cn.com/problems/trim-a-binary-search-tree/ <?php /** 给定一个二叉搜索树,同时给定最小边界L 和最大边界 R。通过修剪二叉搜索树,使得所有节点的值在[L, R]中 (R>=L) 。你可能需要改变树的根节点,所 阅读全文
posted @ 2020-09-29 19:20 花花妹子。 阅读(104) 评论(0) 推荐(0)
摘要:地址:https://leetcode-cn.com/problems/transpose-matrix/ <?php /** 给定一个矩阵 A, 返回 A 的转置矩阵。 矩阵的转置是指将矩阵的主对角线翻转,交换矩阵的行索引与列索引。 示例 1: 输入:[[1,2,3],[4,5,6],[7,8,9 阅读全文
posted @ 2020-09-29 17:40 花花妹子。 阅读(211) 评论(0) 推荐(0)
摘要:地址:https://leetcode-cn.com/problems/minimum-absolute-difference/submissions/ <?php /** 给你个整数数组 arr,其中每个元素都 不相同。 请你找到所有具有最小绝对差的元素对,并且按升序的顺序返回。 示例 1: 输入 阅读全文
posted @ 2020-09-29 16:49 花花妹子。 阅读(134) 评论(0) 推荐(0)
摘要:地址:https://leetcode-cn.com/problems/pascals-triangle/ <?php /** 给定一个非负整数 numRows,生成杨辉三角的前 numRows 行。 在杨辉三角中,每个数是它左上方和右上方的数的和。 示例: 输入: 5 输出: [ [1], [1, 阅读全文
posted @ 2020-09-29 16:12 花花妹子。 阅读(71) 评论(0) 推荐(0)
摘要:地址:https://leetcode-cn.com/problems/find-lucky-integer-in-an-array/ <?php /** 在整数数组中,如果一个整数的出现频次和它的数值大小相等,我们就称这个整数为「幸运数」。 给你一个整数数组 arr,请你从中找出并返回一个幸运数。 阅读全文
posted @ 2020-09-29 15:48 花花妹子。 阅读(108) 评论(0) 推荐(0)
摘要:地址:https://leetcode-cn.com/problems/average-salary-excluding-the-minimum-and-maximum-salary/ <?php /** 给你一个整数数组 salary ,数组里每个数都是 唯一 的,其中 salary[i] 是第  阅读全文
posted @ 2020-09-28 17:42 花花妹子。 阅读(200) 评论(0) 推荐(0)
摘要:地址:https://leetcode-cn.com/problems/remove-palindromic-subsequences/ <?php /** 给你一个字符串 s,它仅由字母 'a' 和 'b' 组成。每一次删除操作都可以从 s 中删除一个回文 子序列。 返回删除给定字符串中所有字符( 阅读全文
posted @ 2020-09-28 17:36 花花妹子。 阅读(101) 评论(0) 推荐(0)
摘要:地址:https://leetcode-cn.com/problems/relative-sort-array/ <?php /** 给你两个数组,arr1 和 arr2, arr2 中的元素各不相同 arr2 中的每个元素都出现在 arr1 中 对 arr1 中的元素进行排序,使 arr1 中项的 阅读全文
posted @ 2020-09-28 17:05 花花妹子。 阅读(115) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 ··· 10 下一页