- 博客(4)
- 收藏
- 关注
原创 Median of Two Sorted Arrays
There are two sorted arrays nums1 and nums2 of size m and n respectively.Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)).Example 1: nums1 = [1, 3] num
2016-12-09 23:59:51 255
原创 Remove Duplicates from Sorted Array II
Follow up for “Remove Duplicates”: What if duplicates are allowed at most twice?For example, Given sorted array nums = [1,1,1,2,2,3],Your function should return length = 5, with the first five elemen
2016-12-09 22:05:13 180
原创 Remove Duplicates from Sorted Array
Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length.Do not allocate extra space for another array, you must do this in place with con
2016-12-09 21:54:46 171
原创 GO语言初探
GO初探入门学习参考《学习go语言》介绍并行,chanel,快速,安全,标准格式化,类型后置(var a int),UTF-8,开源。和erlang相比,erlang是函数式的,和C一样,go是命令式的。erlang运行在虚拟机上,go是静态编译的。go更接近于unix。安装不说了,百度吧Q1. (0) For-loop 1. 创建一个基于 for 的简单的循环。使其循环 10 次,并且
2016-12-06 02:30:32 315
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人