- 博客(13)
- 资源 (5)
- 收藏
- 关注
原创 LeetCode 023 Merge k Sorted Lists
Merge k Sorted ListsMerge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity.Example:Input:[ 1->4->5, 1->3->4, 2->6]Output: 1->1...
2019-06-30 21:00:19 171
原创 LeetCode 022 Generate Parentheses
Generate ParenthesesGiven n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.For example, given n = 3, a solution set is:[ "((()))", "(()())", "...
2019-06-29 22:02:46 155
原创 Java 内存管理(堆和栈)及 垃圾回收算法
Java 内存管理(堆和栈)及 垃圾回收算法一.Jvm虚拟机内存简介1.1 Java运行时内存区1.2 线程私有的如下:1.3 线程共享的如下:二.Java 栈和堆2.1 堆栈的概念和特点2.2 栈与堆的异同2.3 举个例子另注:三.垃圾回收算法3.1 GC机制3.2 GC 流程3.3 GC算法3.4 常见小问题1: Java程序是否会出现内存泄露3.5 常见小问题2:JVM如何管理内存,分成几个...
2019-06-28 20:00:58 9820
原创 VIVO 提前批笔试及面试经历
VIVO大法好Vivo提前批笔试及面试复盘首先是笔试然后是面试环节:一面,技术面:然后是HR面总结Vivo提前批笔试及面试复盘首先是笔试时间60分钟,三道编程题,不允许跳出网页使用本地编译器,只能在网页上编辑。第一次不能使用编译器,感觉暴露了很多问题:首先是一些不常用的方法名可以记得不是很清楚,原来都是依赖于代码提示的;其次是类包需要自己导入,平时都是编译器自动导入的,路径可能记得...
2019-06-21 10:48:37 3995 12
原创 LeetCode 021 Merge Two Sorted Lists
Merge Two Sorted ListsMerge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.Example:Input: 1->2->4, 1-&...
2019-06-19 16:59:05 205 2
原创 LeetCode 020 Valid Parentheses
Valid ParenthesesGiven a string containing just the characters ‘(’, ‘)’, ‘{’, ‘}’, ‘[’ and ‘]’, determine if the input string is valid.An input string is valid if:Open brackets must be closed by t...
2019-06-19 12:08:47 201
原创 LeetCode 018 4Sum
4SumGiven an array nums of n integers and an integer target, are there elements a, b, c, and d in nums such that a + b + c + d = target? Find all unique quadruplets in the array which gives the sum o...
2019-06-19 10:08:11 170
原创 error: failed to read PNG signature: file does not start with PNG signature
开发中遇到了无法打包生成apk文件的问题。报错如下 error: failed to read PNG signature: file does not start with PNG signature错误:无法读取PNG签名:文件没有从PNG签名开始。一般都是图片格式有问题 可能是直接修改后缀名造成了图片的损伤,也可能是图片压缩时产生的问题。可以重新处理图片再加载,建议使用PS或其他软...
2019-06-18 16:06:56 20184 1
原创 Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 18402 (n.myapplication),问题解决
最近写一个Android Studio的很简单的demo,就是打开显示一个底部导航栏,每个页面显示一个图。总是报我 Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 18402 (n.myapplication),错误。找了好久,不应该啊,因为和原来的程序一模一样咋就出了问题呢,然后网上搜解决办法发现都是混编了C++的代码,然后堆爆了。导致问...
2019-06-17 17:33:44 12940
原创 LeetCode 017 Letter Combinations of a Phone Number
Letter Combinations of a Phone NumberGiven a string containing digits from 2-9 inclusive, return all possible letter combinations that the number could represent.A mapping of digit to letters (just ...
2019-06-13 17:20:49 122
原创 LeetCode 019 Remove Nth Node From End of List
Remove Nth Node From End of ListGiven a linked list, remove the n-th node from the end of list and return its head.Example:Given linked list: 1->2->3->4->5, and n = 2.After removing ...
2019-06-05 20:00:17 164
原创 LeetCoe 016 3Sum Closest
3Sum ClosestGiven an array nums of n integers and an integer target, find three integers in nums such that the sum is closest to target. Return the sum of the three integers. You may assume that each...
2019-06-04 16:26:18 140
原创 LeetCode 015 3Sum
3SumMediumGiven 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 zero.Note:The solution set mus...
2019-06-04 16:17:51 141
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人