自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

Jin_Kwok的博客

让时间掷地有声

  • 博客(12)
  • 资源 (1)
  • 收藏
  • 关注

原创 【LeetCode】347. Top K Frequent Elements——基于Java的解决方案

347. Top K Frequent ElementsTotal Accepted: 12022 Total Submissions: 28556 Difficulty: MediumGiven a non-empty array of integers, return the k most frequent elements.For example,Gi

2016-05-31 22:43:35 4909 1

原创 【LeetCode】215. Kth Largest Element in an Array,基于Java和C++的解法

215. Kth Largest Element in an ArrayTotal Accepted: 57859 Total Submissions: 171725 Difficulty: MediumFind the kth largest element in an unsorted array. Note that it is the kth largest e

2016-05-31 11:40:47 1860

原创 【Java Learning】重载、多态和动态绑定——Overloading、Ploymorphism&Dynamic binding

Title:重载、多态和动态绑定——Overloading、Ploymorphism&Dynamic binding【Section one】    对于面向对象编程语言,重载、多态和动态绑定是非常重要的概念,并且其中细节容易误解,在此,我写下这篇文章既为总结,亦为学习。【Section two】一、重载   在Java中,方法的名称和形参列表称为方法的签名,只

2016-05-30 20:31:28 798

原创 【JavaLearning】接口与抽象类的比较(The comparison of Interface and Abstract Class )

【Section one】Abstract    近来,在学习Java的过程中遇到了一个新的概念(本人有C/C++开发基础)——接口(Interface),这个概念在C++中并不存在,因此,不由得一阵困惑,感觉所谓接口似乎与抽象类有很多共同之处,故,在深入理解并通过编程验证之后,写下这篇文章,浅析Java中接口与抽象类的异同。【Section two】Interface

2016-05-24 17:09:34 783

原创 【Java Learning】泛型类ArrayList 的用法介绍

泛型类ArrayList 的用法介绍         学过C++的人都知道,C++中的vector容器是一个非常有用的工具,与之类似,Java中有一个Vector类,不过它用得很少,我们更青睐于功能更加强大泛型类ArrayList.    为何而生?在程序设计中,有时候我们需要定义一个数组,但却不确定数据的大小,在Java中我们可以通过new方法来定义,如:public voi

2016-05-18 00:14:07 1320

原创 【LeetCode】132. Palindrome Partitioning II 基于动态规划DP、C++、Java的分析及解法

132. Palindrome Partitioning IITotal Accepted: 50256 Total Submissions: 230441 Difficulty: HardGiven a string s, partition s such that every substring of the partition is a palindrome.

2016-05-16 20:29:43 4304 2

原创 【LeetCode】120. Triangle 基于C++和Java的分析及解法,动态规划

120. TriangleTotal Accepted: 69567 Total Submissions: 229977 Difficulty: MediumGiven a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers

2016-05-15 21:05:31 3552 1

原创 【Java】List接口的应用,与C++中vector应用比较 (一)

【写作原因】     在解决【LeetCode.113 Path Sum II】时,我分别采用Java和C++,感觉其中差异有整理一下的必要。    【动态数组的创建】     在编程中,很多情况下,在预编译过程阶段,数组的长度是不能预先知道的,必须在程序运行时动态的给出,但是问题是,编程语言C/C++、Java要求定义数组时,必须明确给定数组的大小,要不然编译通不过。形如LeetCo

2016-05-10 16:35:53 5600

原创 【Java】关于Java中参数传递方式与C++的比较

【写作原由】    今天刚刚刷了一道二叉树路径搜索的题(LeetCode 113 Path Sum II),在采用熟悉的C++解答之后,用Java语言再次撸了一遍,发现一些问题,特别是参数传递的问题: 【C++】     在C/C++中,参数传递分为两种:值传递和地址传递,其中:     1.值传递:实际参数将值传递给形式参数,对形式参数进行操作不影响实际参数,如:int

2016-05-09 23:46:37 3628

原创 【LeetCode】113. Path Sum II 基于Java和C++的解法及分析

113. Path Sum II Total Accepted: 80509 Total Submissions: 284188 Difficulty: MediumGiven a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum.F

2016-05-09 22:25:36 2506 2

原创 【LeetCode】112. Path Sum Java,C++,解法及注释

112. Path Sum  Total Accepted: 101647 Total Submissions: 324557 Difficulty: Easy Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all th

2016-05-04 11:35:12 818

原创 【LeetCode】111. Minimum Depth of Binary Tree解法及注释,Java,C++,DFS

111. Minimum Depth of Binary Tree Total Accepted: 104964 Total Submissions: 342426 Difficulty: Easy Given a binary tree, find its minimum depth.The minimum depth is the number of nodes

2016-05-04 09:50:23 941

SimHei-config.zip

SimHei.ttf 字体文件,适用于Mac OX,Linux等系统平台。特别适用于 matplotlib 绘图中文标签报错的问题

2020-05-28

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除