摘要: Length of Last Word: Given a string s consists of upper/lower-case alphabets and empty space characters ’ ‘, return the length of las... 阅读全文
posted @ 2017-12-17 00:00 liangf27 阅读(57) 评论(0) 推荐(0) 编辑
摘要: Find Pivot: Given an array of integers nums, write a method that returns the “pivot” index of this array. We define the pivot inde... 阅读全文
posted @ 2017-12-09 10:49 liangf27 阅读(62) 评论(0) 推荐(0) 编辑
摘要: Find Bottom Left Tree Value: Given a binary tree, find the leftmost value in the last row of the tree. Example 1: Input: 2 ... 阅读全文
posted @ 2017-12-02 14:42 liangf27 阅读(67) 评论(0) 推荐(0) 编辑
摘要: Maximum Length of Repeated Subarray: Given two integer arrays A and B, return the maximum length of an subarray that appears in both ... 阅读全文
posted @ 2017-11-23 20:19 liangf27 阅读(99) 评论(0) 推荐(0) 编辑
摘要: Maximum Subarray: Find the contiguous subarray within an array (containing at least one number) which has the largest sum. For exa... 阅读全文
posted @ 2017-11-22 16:44 liangf27 阅读(100) 评论(0) 推荐(0) 编辑
摘要: Reverse Words in a String: Given an input string, reverse the string word by word. For example, Given s = “the sky is blue”, r... 阅读全文
posted @ 2017-11-08 00:00 liangf27 阅读(103) 评论(0) 推荐(0) 编辑
摘要: Implement strStr(): Implement strStr(). Returns the index of the first occurrence of needle in haystack, or -1 if needle is not pa... 阅读全文
posted @ 2017-10-31 21:45 liangf27 阅读(117) 评论(0) 推荐(0) 编辑
摘要: import android.support.v7.widget.RecyclerView;import android.view.LayoutInflater;import android.view.View;import android.view.ViewGrou... 阅读全文
posted @ 2017-10-25 10:52 liangf27 阅读(133) 评论(0) 推荐(0) 编辑
摘要: Symmetric Tree: Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). For example, this b... 阅读全文
posted @ 2017-10-24 12:48 liangf27 阅读(63) 评论(0) 推荐(0) 编辑
摘要: socket的基本操作: (1)socket()函数: (2)bind()函数: (3)listen(),connect()函数; (4)accept()函数; (5)socket中的发送与接收函数: (6)close()函数: (7)服务器上调用socket函数: (8)客户端调用socket函数 阅读全文
posted @ 2017-10-24 00:17 liangf27 阅读(649) 评论(0) 推荐(1) 编辑