摘要: Java的final关键字在日常工作中经常会用到,比如定义常量的时候。如果是C++程序员出身的话,可能会类比C++语言中的define或者const关键字,但其实它们在语义上差距还是挺大的。 在Java中,final可以用来修饰类、方法和变量(包括成员变量和局部变量)。我们先来简单介绍一下final 阅读全文
posted @ 2016-08-09 17:56 pkufork 阅读(1444) 评论(1) 推荐(1) 编辑
摘要: 原题如下: 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 complex 阅读全文
posted @ 2016-08-09 17:27 pkufork 阅读(531) 评论(0) 推荐(0) 编辑