// language c // 剑指04 // https://leetcode-cn.com/problems/er-wei-shu-zu-zhong-de-cha-zhao-lcof/ bool findNumberIn2DArray(int** matrix, int matrixSize, ...
分类:
其他好文 时间:
2021-01-30 12:17:05
阅读次数:
0
题目链接:https://leetcode-cn.com/problems/repeated-substring-pattern 题目描述: 给定一个非空的字符串,判断它是否可以由它的一个子串重复多次构成。给定的字符串只含有小写英文字母,并且长度不超过10000。 示例 1: 输入: "abab" ...
分类:
其他好文 时间:
2021-01-30 11:52:32
阅读次数:
0
#define max(a,b) ((a)>(b))?(a):(b) int integerBreak(int n){ int dp[58]={0}, i, j; dp[1]=1; for(i=2; i<=n; i++){ for (j=1; j<=i/2; j++){ dp[i]= max( dp ...
分类:
其他好文 时间:
2021-01-29 11:57:46
阅读次数:
0
1.删除链表中的节点https://leetcode-cn.com/problems/delete-node-in-a-linked-list/ 一开始没看清题目中传入的参数为“要被删除的节点”,找了半天链表在哪 1 class ListNode: 2 def __init__(self, x): ...
分类:
其他好文 时间:
2021-01-28 12:08:24
阅读次数:
0
此博客链接: 回文子串 题目链接:https://leetcode-cn.com/problems/palindromic-substrings/ 题目 给定一个字符串,你的任务是计算这个字符串中有多少个回文子串。 具有不同开始位置或结束位置的子串,即使是由相同的字符组成,也会被视作不同的子串。 示 ...
分类:
其他好文 时间:
2021-01-28 11:54:43
阅读次数:
0
反转一个单链表。 示例: 输入: 1->2->3->4->5->NULL输出: 5->4->3->2->1->NULL进阶:你可以迭代或递归地反转链表。你能否用两种方法解决这道题? 来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/reverse- ...
分类:
其他好文 时间:
2021-01-27 14:05:27
阅读次数:
0
此博客链接:https://www.cnblogs.com/ping2yingshi/p/14331519.html 等价多米诺骨牌对的数量 题目链接:https://leetcode-cn.com/problems/number-of-equivalent-domino-pairs/ 题目 给你一 ...
分类:
其他好文 时间:
2021-01-27 13:43:12
阅读次数:
0
仅供自己学习 题目: The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a ...
分类:
其他好文 时间:
2021-01-27 13:14:49
阅读次数:
0
581. 最短无序连续子数组 给你一个整数数组 nums ,你需要找出一个 连续子数组 ,如果对这个子数组进行升序排序,那么整个数组都会变为升序排序。 请你找出符合题意的 最短 子数组,并输出它的长度。 示例 1: 输入:nums = [2,6,4,8,10,9,15] 输出:5 解释:你只需要对 ...
分类:
编程语言 时间:
2021-01-27 13:10:56
阅读次数:
0
language: C address // nt题,不解释 /** * Note: The returned array must be malloced, assume caller calls free(). */ int* printNumbers(int n, int* returnSiz ...
分类:
其他好文 时间:
2021-01-26 12:26:48
阅读次数:
0