常见算法系列
文章平均质量分 65
一起学习下,常见算法在java中的实现
程序员ZZ的源码
学习、记录、思考~~
展开
-
【常见算法系列】一、树在java中的实现
真的了解树的定义吗?熟悉树在java中的实现吗?原创 2021-07-18 21:26:23 · 604 阅读 · 7 评论 -
【常见算法系列】你真正了解java中的堆吗?
看到堆,我们想到堆排序,以及延伸k个最大值和K个最小值;而在java中优先队列(PriorityQueue)很好实现了堆原创 2021-01-19 14:32:51 · 121 阅读 · 1 评论 -
【常见算法系列】栈在java中,你真的了解吗?
栈在java中使用原创 2021-01-03 15:41:21 · 164 阅读 · 0 评论 -
leetcode解题系列:Two Sum
Given an array of integers, return indices of the two numbers such that they add up to a specific target原创 2017-05-05 23:36:15 · 228 阅读 · 0 评论 -
leetcode解题系列:计算算式
Evaluate the value of an arithmetic expression in Reverse Polish Notation. Valid operators are +, -, *, /. Each operand may be an integer or another expression. For example: ["2", "1", "+", "3", "*原创 2015-07-23 12:09:36 · 707 阅读 · 0 评论 -
leetcode解题系列:翻转数组
Q:Problem: Rotate an array of n elements to the right by k steps. For example, with n = 7 and k = 3, the array [1,2,3,4,5,6,7] is rotated to [5,6,7,1,2,3,4]. How many different ways do you know to s原创 2015-07-23 11:19:30 · 378 阅读 · 0 评论