摘要:
Length of Last Word: Given a string s consists of upper/lower-case alphabets and empty space characters ’ ‘, return the length of las... 阅读全文
摘要:
Find Pivot: Given an array of integers nums, write a method that returns the “pivot” index of this array. We define the pivot inde... 阅读全文
摘要:
Find Bottom Left Tree Value: Given a binary tree, find the leftmost value in the last row of the tree. Example 1: Input: 2 ... 阅读全文
摘要:
Maximum Length of Repeated Subarray: Given two integer arrays A and B, return the maximum length of an subarray that appears in both ... 阅读全文
摘要:
Maximum Subarray: Find the contiguous subarray within an array (containing at least one number) which has the largest sum. For exa... 阅读全文
摘要:
Reverse Words in a String: Given an input string, reverse the string word by word. For example, Given s = “the sky is blue”, r... 阅读全文
摘要:
Implement strStr(): Implement strStr(). Returns the index of the first occurrence of needle in haystack, or -1 if needle is not pa... 阅读全文
摘要:
import android.support.v7.widget.RecyclerView;import android.view.LayoutInflater;import android.view.View;import android.view.ViewGrou... 阅读全文
摘要:
Symmetric Tree: Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). For example, this b... 阅读全文
摘要:
socket的基本操作: (1)socket()函数: (2)bind()函数: (3)listen(),connect()函数; (4)accept()函数; (5)socket中的发送与接收函数: (6)close()函数: (7)服务器上调用socket函数: (8)客户端调用socket函数 阅读全文