- 博客(19)
- 收藏
- 关注
原创 LeetCode17:电话号码的字符组合
https://leetcode.com/problems/letter-combinations-of-a-phone-number/问题描述Given a string containing digits from 2-9 inclusive, return all possible letter combinations that the number could represent...
2019-08-30 15:35:11 169
原创 LeetCode15:三数之和为0
https://leetcode.com/problems/3sum/问题描述Given an array nums of n integers, are there elements a, b, c in nums such that a + b + c = 0? Find all unique triplets in the array which gives the sum of z...
2019-08-29 16:33:48 142
原创 LeetCode14:最长公共前缀
https://leetcode.com/problemset/top-interview-questions/问题描述Write a function to find the longest common prefix string amongst an array of strings.If there is no common prefix, return an empty st...
2019-08-29 15:11:46 84
原创 LeetCode13:罗马字符转整数
https://leetcode.com/problemset/top-interview-questions/问题描述Roman numerals are represented by seven different symbols:I, V, X, L, C, D and M.Symbol ValueI 1V 5...
2019-08-27 16:09:19 159
原创 LeetCode11:Container With Most Water
https://leetcode.com/problems/container-with-most-water/问题描述Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such tha...
2019-08-26 16:17:08 127
原创 LeetCode8:String to Integer
https://leetcode.com/problems/string-to-integer-atoi/问题描述Implement atoi whichconverts a string to an integer.The function first discards as many whitespace characters as necessary until the fir...
2019-08-25 21:03:51 83
原创 LeetCode7: 反转整数
https://leetcode.com/problems/reverse-integer/问题描述Given a 32-bit signed integer, reverse digits of an integer.Example 1:Input: 123Output: 321Example 2:Input: -123Output: -321Exampl...
2019-08-23 17:28:18 86
原创 《编程之法:面试和算法心得》
https://wizardforcel.gitbooks.io/the-art-of-programming-by-july/content/
2019-08-23 16:58:36 211
原创 LeetCode5:求最长回文子串
https://leetcode.com/problems/longest-palindromic-substring/submissions/问题描述Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000.Exa...
2019-08-23 15:59:59 106
原创 LeetCode3:求最长无重复子串
https://leetcode.com/problems/longest-substring-without-repeating-characters/问题描述:Given a string, find the length of the longest substring without repeating characters.Example 1:Input: "abcab...
2019-08-21 21:48:07 77
原创 Leetcode2:求两数相加
https://leetcode.com/problems/add-two-numbers/ 问题描述: You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their ...
2019-08-20 14:38:00 84
转载 进程间通信方式
进程之间通信的方式主要有: 管道(pipe),流管道(s_pipe)和有名管道(FIFO) 信号(signal) 消息队列 共享内存 信号量 套接字(socket) 管道( pipe ) 管道这种通讯方式有两种限制,一是半双工的通信,数据只能单向流动,二是只能在具有亲缘关系的进程间使用。进程的亲缘关系通常是指父子进程关系。流管...
2019-08-19 16:24:22 197
原创 2018 年力扣高频 算法面试题汇总
为啥我那么的后知后觉,现在才发觉有leetcode刷题一说?https://leetcode-cn.com/explore/interview/card/top-interview-quesitons-in-2018/
2019-08-19 15:53:50 833
原创 C++中有了malloc / free , 为什么还需要 new / delete
malloc与free是C++/C语言的标准库函数,new/delete是C++的运算符。它们都可用于申请动态内存和释放内存。 对于非内部数据类型的对象而言,光用maloc/free无法满足动态对象的要求。对象在创建的同时要自动执行构造函数,对象在消亡之前要自动执行析构函数。由于malloc/free是库函数而不是运算符,不在编译器控制权限之内,不能够把执行构造函数和析构函数的任务强加于mall...
2019-08-19 15:44:53 265
原创 [转]C与C++的区别
https://www.zhihu.com/question/28834538作者:匿名用户链接:https://www.zhihu.com/question/28834538/answer/370975653来源:知乎著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。1、首先C和C++在基础语句上没有太大区别。我想学过几门编程语言的都有过这种体会,主...
2019-08-19 15:02:59 131
原创 很棒的tutorial Blogs
https://ryanstutorials.net/https://www.tutorialspoint.com/unix/index.htm里面有linux tutorial, bash tutorial.
2019-08-05 11:00:21 122
原创 二进制类型的面试题
把一个整数减去1之后再和原来的数做位与运算(即(n-1)& n),得到的运算结果相当于把整数的二进制表示中最右边的1变成0,很多二进制的问题都可以通过这种思路解决:求一个整数中二进制表示1的个数 判断一个整数是否是2的整数次方 输入另个整数m和n,计算需要改变m的二进制表示中的多少位才能得到n...
2019-08-02 15:09:49 693
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人