while(true)offer*=2;
while(true)offer*=2;
全部文章
算法学习记录
Go语言算法系列(1)
冲刺Google系列(2)
未归档(1)
归档
标签
去牛客网
登录
/
注册
while(true)offer*=2;的博客
人生就是一段不断发现问题,制造问题,并解决问题的过程!
全部文章
/ 算法学习记录
(共5篇)
Leetcode93 复原IP地址
class Solution { private List<String> res = new ArrayList<>(); public List<String> restoreIpAddresses(String s) { if...
2019-09-26
0
484
Leetcode18: 四数之和
class Solution { //主函数调用 public List<List<Integer>> fourSum(int[] nums, int target) { Arrays.sort(nums); List<L...
2019-09-23
0
400
Leetcode572 树t是否为树s的子树
先是原始解法,采用递归的方式,代码如下: class Solution { public boolean isSameTree(TreeNode s, TreeNode t){ if(s == null && t == null) return true; ...
2019-09-18
0
529
leetcode拓扑排序专题记录
课程表2问题的两种解法解法一:拓扑排序,根据节点的入度信息 public class Solution { public int[] findOrder(int numCourses, int[][] prerequisites) { // 先处理极端情况 ...
2019-08-24
0
725
二叉搜索树与双向链表
public class Solution { TreeNode head = null; TreeNode realHead = null; public TreeNode Convert(TreeNode root) { if(root == null) ...
2019-07-27
0
427