02 2020 档案

摘要:\0算字符串长度吗? 当你用函数strlen()求某一个字符串的长度时是不包括结尾标志符'\0'的,但当你用sizeof()求某个字符串占用的内存空间时,结尾字符'\0'是被包括在里面的. //https://github.com/zhedahht/CodingInterviewChinese2/b 阅读全文
posted @ 2020-02-29 22:17 清风oo 阅读(185) 评论(0) 推荐(0) 编辑
摘要:https://www.cnblogs.com/Jessey-Ge/p/10993487.html Given an array nums of n integers, are there elements a, b, c in nums such that a + b + c = 0? Find 阅读全文
posted @ 2020-02-22 18:29 清风oo 阅读(120) 评论(0) 推荐(0) 编辑
摘要:https://www.cnblogs.com/king-lps/p/10679121.html 首先,这是一道比较蠢的题目,没有太多意思。 1. 原始题目 请你来实现一个 atoi 函数,使其能将字符串转换成整数。 首先,该函数会根据需要丢弃无用的开头空格字符,直到寻找到第一个非空格的字符为止。 阅读全文
posted @ 2020-02-16 20:55 清风oo 阅读(159) 评论(0) 推荐(0) 编辑
摘要:https://www.cnblogs.com/hongten/p/hongten_python_function_annotation.html def f(ham: 42, eggs: int = 'spam') -> "Nothing to see here": print("Annotati 阅读全文
posted @ 2020-02-15 14:15 清风oo 阅读(2534) 评论(0) 推荐(0) 编辑
摘要:解法 比较经典的问题,寻找最长回文子串。Leetcode里提供了多种解法。我采用最直观的解法:中心扩展法。 思路是每次以当前元素为中心向两边扩展,直到遇到不同元素,此时找到一个子串。有两点需要注意的地方: 1)空串和单字符都是回文,直接返回即可。 2)偶数回文和奇数回文的情况。例如:abace是ab 阅读全文
posted @ 2020-02-15 13:54 清风oo 阅读(164) 评论(0) 推荐(0) 编辑
摘要:https://www.cnblogs.com/xiexiaoxiao/p/7772441.html https://blog.csdn.net/su_bao/article/details/81484483 https://blog.csdn.net/leavemetomorrow/article 阅读全文
posted @ 2020-02-15 12:01 清风oo 阅读(1539) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2020-02-14 09:04 清风oo 阅读(1) 评论(0) 推荐(0) 编辑
摘要:Given a string, find the length of the longest substring without repeating characters. Example 1: Input: "abcabcbb" Output: 3 Explanation: The answer 阅读全文
posted @ 2020-02-05 12:06 清风oo 阅读(56) 评论(0) 推荐(0) 编辑
摘要:Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have ex 阅读全文
posted @ 2020-02-05 12:05 清风oo 阅读(139) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2020-02-01 18:59 清风oo 阅读(0) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示