剑指offer
weixin_45530931
这个作者很懒,什么都没留下…
展开
-
剑指offer2
package com.example.test;import com.example.test.offer04.TreeNode;public class offer07 { public boolean HasSubtree(TreeNode root1, TreeNode root2) { if (root1 == null || root2 == null) return false; if (root1.val == root2.val && isC...原创 2020-10-26 10:51:50 · 59 阅读 · 0 评论 -
剑指offer1
1.package com.example.test;public class offer01 { public boolean Find(int target, int[][] array) { int lines = array.length; int cols = array[0].length; int x = 0; int y = cols - 1; while (x < lines && y >= 0) { if (array[x原创 2020-10-24 20:49:42 · 91 阅读 · 0 评论