![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
算法
文章平均质量分 94
小水VV
2018.7~2019.6 IGG.Unity客户端实习程序
2019.6~至今《料理次元》游戏开发
展开
-
【算法】BFS 广度优先遍历由浅入深
//该算法比较重要,看文字的时候最好集中注意力,看不懂多敲几遍代码,对图不了解的可以先百度一下图的广度优先遍历类似于树的层次遍历,采用的搜索方法的特点是尽可能先对横向结点进行搜索,故称其为广度优先搜索(Breadth-First-Search).其基本思想是:给定图 G= (V, E) 从图中某个源点v出发,在访问了顶点V之后接着就尽可能先在横向搜索V的所有邻接点。在依次访问V的各个...原创 2018-05-02 15:41:33 · 1912 阅读 · 0 评论 -
【LeetCode(算法)】two-sum(两数相加)
题目如下:Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two numbers such that they add up to the target...原创 2019-02-02 18:27:25 · 203 阅读 · 0 评论 -
【LeetCode(算法)】Reverse digits of an integer(反转整型数字)
题目在这Reverse digits of an integer.Example1: x = 123, return 321Example2: x = -123, return -321click to show spoilers.Have you thought about this?Here are some good questions to ask before cod...原创 2019-02-14 20:23:38 · 172 阅读 · 0 评论