coderlong的博客

我料青山多妩媚,料青山看我当如是。

排序:
默认
按更新时间
按访问量

Java并发四大组件

title: JUC的四大组件 date: 2018-4-3 21:18:40 categories: - JUC tags: - JUC - 并发处理 - 源码剖析 CyclicBarrier 它允许一组线程互相等待,直到到达某个公...

2018-04-11 15:02:05

阅读数:131

评论数:0

Linux踩坑 之 crontab不执行

老大分了个任务,需要在云主机上定期执行一段Python脚本 并且直接告诉我,要用cron 来做,定期任务。 没接触这个,就是百度谷歌了, 博主给的样例,就是自己写一个cron脚本 vim davecron.cron 内容就是简单的打印log * * * * * date &...

2018-08-01 21:17:11

阅读数:45

评论数:0

Leetcode Contest94

title: LeetcodeContest94 date: 2018-7-22 23:43:00 categories: - leetcode tags: - Algorithm 摘要: 做的最简单的一次周比赛 872 Leaf-Similar Tr...

2018-07-23 11:38:54

阅读数:25

评论数:0

863. All Nodes Distance K in Binary Tree

原题: We are given a binary tree (with root node root), a target node, and an integer value K. Return a list of the values of all nodes that have a d...

2018-07-02 19:46:49

阅读数:170

评论数:0

26. Remove Duplicates from Sorted Array

Given a sorted array nums, remove the duplicates in-place such that each element appear only once and return the new length. Do not allocate extra s...

2018-06-14 10:51:09

阅读数:22

评论数:0

leetcode 227. Basic Calculator II

Implement a basic calculator to evaluate a simple expression string. The expression string contains only non-negative integers, +, -, *, /operators ...

2018-05-17 23:02:50

阅读数:24

评论数:0

leetcode 165. Compare Version Numbers

Compare two version numbers version1 and version2. If version1 > version2 return1; if version1 < version2 return-1;oth...

2018-05-17 10:22:19

阅读数:22

评论数:0

leetcode 93. Restore IP Addresses

Given a string containing only digits, restore it by returning all possible valid IP address combinations. Example: Input: “25525511135” Output: [...

2018-05-10 17:36:00

阅读数:30

评论数:0

符号优先算法

#include<stdio.h> int find(int a,int b) //优先关系表 { int table[6][6] = { 1, -1, -1, -1, 1, 1, ...

2018-05-10 12:24:15

阅读数:49

评论数:0

牛客网SQL题目答案

title: 牛客网SQL题目答案 date: 2018-4-20 21:18:40 categories: - MySQL tags: - MySQL 摘要: NEWCODER SQL 牛客SQL一直用的就是那几张表 1. 查找最晚入职员工的所有信息 ...

2018-05-09 12:42:47

阅读数:210

评论数:0

leetcode 529. Minesweeper

title: LeetCode529. Minesweeper date: 2018-05-05 20:01:47 categories: - Algorithm tags: - algorithm - java DFS &&a...

2018-05-09 12:42:09

阅读数:26

评论数:0

2018实习生面经

title: 2018年0 offer面经 date: 2018-4-14 21:18:40 categories: - 生活 tags: - 生活 摘要:面试经验 笔试之流水账 因为我大鹏哥是腾讯大牛,所以第一个是鹏哥给的内推腾讯,后来估计是我简历...

2018-05-09 12:41:32

阅读数:80

评论数:0

leetcode 785. Is Graph Bipartite?

Given an undirected graph, return true if and only if it is bipartite. Recall that a graph is bipartite if we can split it’s set of nodes into two i...

2018-05-09 12:35:56

阅读数:164

评论数:0

leetcode 802. Find Eventual Safe States

fdfg

2018-05-09 12:24:36

阅读数:40

评论数:0

leetcode 547. Friend Circles

There are N students in a class. Some of them are friends, while some are not. Their friendship is transitive in nature. For example, if A is a direc...

2018-05-03 10:39:58

阅读数:33

评论数:0

leetcode 473. Matchsticks to Square

原题目: Remember the story of Little Match Girl? By now, you know exactly what matchsticks the little match girl has, please find out a way you can mak...

2018-04-28 16:14:40

阅读数:19

评论数:0

leetcode 417. Pacific Atlantic Water Flow

原题目: Given an m x n matrix of non-negative integers representing the height of each unit cell in a continent, the “Pacific ocean” touches the left a...

2018-04-27 16:26:31

阅读数:39

评论数:2

LeetCode 43. Multiply Strings

自己来实现字符串的 mul函数, 给定的字符串符合数字的要求,very simple Solution 考虑清楚中间的carry, index 就行了. class Solution { public String multiply(String num1, String num2...

2018-04-26 17:03:40

阅读数:17

评论数:0

二叉树路径的最大值

Given a binary tree, find the maximum path sum. For this problem, a path is defined as any sequence of nodes from some starting node to any node in ...

2018-04-19 10:22:41

阅读数:85

评论数:1

非递归中序遍历的一点解释

递归形式的前序,中序,后序,便利大家应该都是比较熟悉的。但是,有时候,在针对一些对BST遍历过程中节点状态控制的时候,使用非递归形式的算法,往往更加有效,代码更加简洁。 1. 先把二叉树的非递归中序遍历贴出。leetcode题目 public List<Integer&a...

2018-04-16 16:54:30

阅读数:32

评论数:0

提示
确定要删除当前文章?
取消 删除
关闭
关闭