菜到不能再菜的那种
菜到不能再菜的那种
全部文章
题解
归档
标签
去牛客网
登录
/
注册
菜到不能再菜的那种的博客
全部文章
/ 题解
(共2篇)
思路:命里有时终须有,命里无时莫强求。
public class Solution { public boolean exist(String[] strs, String word) { char[][] board = new char[strs.length][strs[0].length()]; ...
Java
数组
字符串
深度优先搜索
回溯
递归
记忆化搜索
2022-03-27
3
553
题解 | #重建二叉树#
5行代码,超过99.77%,用简单的理解,写出巧妙的递归 public TreeNode reConstructBinaryTree(int[] preorder, int[] inorder) { if (preorder==null || preorder.length==0) retu...
Java
二叉树
数组
递归
2022-03-18
0
378