
数据结构与算法
文章平均质量分 89
小虾米有鲨鱼梦
菜鸟学飞ing
展开
-
ARTS打卡第十八周
ARTS打卡第十八周原创 2022-03-27 21:04:20 · 400 阅读 · 0 评论 -
CRC32算法学习笔记——四表法
简单的前面是优雅,背后是复杂crc32四表法原创 2014-12-03 10:20:14 · 2371 阅读 · 0 评论 -
最短路径算法
一、弗洛伊德(Floyd)算法——可以求出所有点之间的最短路径二、迪杰斯特拉(Dijkstra)算法——求某个点到其它结点的最短路径原创 2015-08-14 10:44:55 · 573 阅读 · 0 评论 -
二叉树按层遍历
一、非递归方法,使用一个队列保存访问过的元素import java.util.Queue;import java.util.concurrent.ArrayBlockingQueue;/** * @author:fangxuan * @date:2015年10月13日 * @description: */public class BinaryTree { private stati原创 2015-10-13 16:11:09 · 578 阅读 · 0 评论 -
n位数中取m位的组合
public void printArr(String[] arr, int from, int to) { System.out.print("("); for(int i=from; i<to; i++) { System.out.print(arr[i]); if(i != to-1) {原创 2016-07-30 09:10:38 · 770 阅读 · 0 评论 -
字符串四则运算
解析字符串形式的表达式,求解四则运算 要求: 所有数字都是1-9的个位数 运算符包括+、-、*、/、(、和) 运算中间结果和最终结果为double类型解题思路:原创 2016-08-06 21:11:54 · 1939 阅读 · 0 评论 -
LeetCode 26.Remove Duplicates from Sorted Array
Link:https://leetcode-cn.com/problems/remove-duplicates-from-sorted-array/Description:Given a sorted array nums, remove the duplicates in-place such thateach element appear only once and return th...原创 2019-04-01 23:33:04 · 275 阅读 · 0 评论