
算法
OldDrivers
计算机爱好者
展开
-
中文数字转阿拉伯数字-----终极
package com.jd.jnlu.core.utils; import java.util.*; public class ChineseNumberUtil { private static Map<String,Integer> numberMap=new HashMap<>(); private static Set<String> set=new ...原创 2018-10-25 23:11:10 · 298 阅读 · 0 评论 -
739. 每日温度
1.世界最low算法 (大家有什么好的算法可以扣评论) class Solution { public int[] dailyTemperatures(int[] T) { if(T == null) return null; int[] later=new int[T.length]; for(int i=0;...原创 2019-08-06 11:03:23 · 204 阅读 · 0 评论 -
二叉树展开为链表-leetcode
给定一个二叉树,原地将它展开为链表。 例如,给定二叉树 /** * Definition for a binary tree node. * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNode(int x) { val = x; } ...原创 2019-08-12 10:54:22 · 230 阅读 · 1 评论