# Algorithm

1. 大半夜的分享一道算法题吧

   题目分享: Mine Sweeper <https://www.codewars.com/kata/57ff9d3b8f7dda23130015fa>

   简述: 给一个二维数组, 里面的特定元素代表的是 扫雷游戏中的一些格子, 就比如雷啊.. 或者 数字啊.. 然后你需要做到是 该盘扫雷能否通关.

   这道题 我去年死磕了两天, 最后通过了大部分的 case, 一直卡在一些奇怪的边缘 case, 结果不得不放弃了.. 我当时的解决方案: <https://github.com/Tomotoes/Kotlin-Note/blob/master/src/Solution.kt>

   有兴趣的同学, 可以做一下这道题 很爽的 (不骗你
2. 如何通俗易懂地解释遗传算法？有什么例子？ - 尼布甲尼撒的回答 - 知乎 <https://www.zhihu.com/question/23293449/answer/120185075>
3. 分享道 leetcode 上的必刷题：

   基本计算器 \
   <https://leetcode-cn.com/problems/basic-calculator/>

   没有尝试过的同学可以试下，推荐。

   可惜 scriptoj 平台不继续运营了。 <http://scriptoj.mangojuice.top/>

   这平台里面 一百多道的题 我曾经全刷过，有关于 Virtual DOM 的实现，有关于 写一个 brainfuck 的解释器， linq 的 js 版本等等，里面的题目质量不底， 有工程实践味道。 \
   另一个推荐的平台就是 codewars 了，支持很多编程语言，题目也由浅入深，推荐。<https://www.codewars.com/> 断断续续的 刷到了 3段。
4. 分享道题目：

   重塑矩阵 \
   <https://leetcode-cn.com/problems/reshape-the-matrix/>

   感兴趣的同学可以刷一下。\
   &#x20;![image-20210219232507973](/files/-MTuwBSevvxTzXsAQFdQ) \
   分享下我的做法


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://thinking.simonaking.com/tags/algorithm.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
