
leetcode
没有水杯和雨伞的工科男
这个作者很懒,什么都没留下…
展开
-
leetcode 报错 load of null pointer of type ‘int‘ (__Serializer__.c)
题目https://leetcode-cn.com/problems/two-sum/暴力解法/** * Note: The returned array must be malloced, assume caller calls free(). */int* twoSum(int* nums, int numsSize, int target, int* returnSize){ int a; int b; static int ans[2]; int原创 2020-10-03 21:28:23 · 2538 阅读 · 3 评论 -
leettcode--最长回文串
1 \ 题目描述Given a string which consists of lowercase or uppercase letters, find the length of the longest palindromes that can be built with those letters.This is case sensitive, for example"Aa"is...原创 2020-03-19 14:30:41 · 374 阅读 · 0 评论 -
leetcode--个人记录----面试题57 - II. 和为s的连续正数序列
1 问题描述:输入一个正整数 target ,输出所有和为 target 的连续正整数序列(至少含有两个数)。序列内的数字由小到大排列,不同序列按照首个数字从小到大排列。示例 1:输入:target = 9输出:[[2,3,4],[4,5]]示例 2:输入:target = 15输出:[[1,2,3,4,5],[4,5,6],[7,8]]限制:...原创 2020-03-06 12:00:42 · 177 阅读 · 0 评论