Fork me on GitHub
摘要: 对于引用变量的深层含义,未必在初学的时候就能深刻理解, 所以理解好下面这两句话的真正含义非常重要 1.先搞清楚什么是堆,什么是栈。 Java开辟了两类存储区域,对比二者的特点 堆栈的存储特点决定了其中存储的数据类型。 注意,栈内存储的除了基本类型的变量(8种基本类型)还会存储对象(包括String和 阅读全文
posted @ 2018-03-13 15:38 爱跑步的星仔 阅读(277) 评论(0) 推荐(1) 编辑
摘要: 1,第一道算法题,题目如下: Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each inpu 阅读全文
posted @ 2018-03-13 11:46 爱跑步的星仔 阅读(187) 评论(0) 推荐(0) 编辑