摘要: 3sum Closest: Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return... 阅读全文
posted @ 2017-10-16 17:08 liangf27 阅读(112) 评论(0) 推荐(0) 编辑
摘要: Swap Nodes in Pairs: Given a linked list, swap every two adjacent nodes and return its head. For example, Given 1->2->3->4, you ... 阅读全文
posted @ 2017-10-09 23:44 liangf27 阅读(82) 评论(0) 推荐(0) 编辑
摘要: Remove Element: Given an array and a value, remove all instances of that value in place and return the new length. Do not allocate... 阅读全文
posted @ 2017-10-03 20:08 liangf27 阅读(101) 评论(0) 推荐(0) 编辑
摘要: Remove Duplicates from Sorted Array: Given a sorted array, remove the duplicates in place such that each element appear only once and... 阅读全文
posted @ 2017-09-24 23:13 liangf27 阅读(85) 评论(0) 推荐(0) 编辑
摘要: Generate Parentheses: Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses. For ... 阅读全文
posted @ 2017-09-17 21:03 liangf27 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 1.InputStream、OutputStream处理字节流的抽象类InputStream 是字节输入流的所有类的超类,一般我们使用它的子类,如FileInputStream等.OutputStream是字节输出流的所有类的超类,一般我们使用它的子类,如FileOu... 阅读全文
posted @ 2017-09-17 12:19 liangf27 阅读(298) 评论(0) 推荐(0) 编辑
摘要: 今天安装配置Android Studio的时候,用SDK Manager下载SDK的时候只显示了一个7.0,别的都刷新不出来(被墙了)。去网上搜索怎么解决,发现很多帖子的方法已经过时了(跟现在的AS版本不一样)。最后找到一种方法,供大家参考。打开hosts,在最后一... 阅读全文
posted @ 2017-09-12 16:05 liangf27 阅读(399) 评论(0) 推荐(0) 编辑
摘要: Longest Substring Without Repeating Characters: Given a string, find the length of the longest substring without repeating characters... 阅读全文
posted @ 2017-09-11 21:40 liangf27 阅读(85) 评论(0) 推荐(0) 编辑
摘要: Binary Tree Postorder Given a binary tree, return the postorder traversal of its nodes’ values. For example: Given binary tree {... 阅读全文
posted @ 2017-09-10 15:21 liangf27 阅读(93) 评论(0) 推荐(0) 编辑
摘要: Add Two Numbers: You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse or... 阅读全文
posted @ 2017-09-10 13:41 liangf27 阅读(138) 评论(0) 推荐(0) 编辑