yusijia's blog

yusijia's blog

Keep on going never give up.

  • Home
  • Archives

String To Integer

12345678910111213141516171819202122232425262728293031/* * Implement atoi to convert a string to an integer. * Hint: Carefully consider all p

October 29 2016

ReverseInteger

1234567891011121314151617/* * Reverse digits of an integer. * Example1: x = 123, return 321 * Example2: x = -123, return -321 * If the integ

October 29 2016

TwoSum

题目:一个数组中两个位置上的数的和恰为 target,求这两个位置。 123456789101112131415161718192021222324Example: Given nums = [2, 7, 11, 15], target = 9, Because nums[0]

October 28 2016

addTwoNumbers

123456789101112131415161718192021222324252627282930313233343536373839404142/* * 求两个 List 相加产生的新的一个 List。 * Input: (2 -> 4 -> 3) + (5 -

October 28 2016

LongestSubstringWithoutRepeatingCharacters

题目:求一个字符串中最长的不含重复字符的子串。(注意:子串是连续的,子序列不是连续的) 思路:记录当前字符串的最近一次出现的位置,然后更新符合题目的最长的子串长度 123456789101112131415161718public class LongestSubstringWi

October 28 2016

Median of Two Sorted Arrays

1234567891011121314There are two sorted arrays nums1 and nums2 of size m and n respectively.Find the median of the two sorted arrays. The ov

October 28 2016

ZigZagConversion

123456789101112131415/* * The string "PAYPALISHIRING" is written in a zigzag pattern on a given number * of rows like this: (you may want t

October 28 2016

Longest_Palindromic_Substring

leetCode 005 Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there

October 28 2016

wait()、notify(),notifyAll()和Condition介绍

参考: http://www.cnblogs.com/dolphin0520/p/3920385.html   在前面我们将了很多关于同步的问题,然而在现实中,需要线程之间的协作。比如说最经典的生产者-消费者模型:当队列满时,生产者需要等待队列有空间才能继续往里面放入商品,

October 25 2016

CountDownLatch、CyclicBarrier和Semaphore介绍

参考资料: http://www.cnblogs.com/dolphin0520/p/3920397.html  《Java编程思想》  http://www.itzhai.com/the-introduction-and-use-of-a-countdownlatch.h

October 25 2016
« Prev123456…34Next »

Tags

  • Ajax&JSON1
  • MYSQL12
  • hexo1
  • javaWeb基础8
  • java并发9
  • leetCode26
  • markdown1
  • 二进制技巧2
  • 图床1
  • 基数排序1
  • 常用6
  • 数据结构-Hash2
  • 数据结构-二叉搜索树2
  • 数据结构-二叉树2
  • 数据结构-双向链表1
  • 数据结构-哈夫曼树1
  • 数据结构-图论-LCA1
  • 数据结构-图论-Tarjan2
  • 数据结构-图论-图论基础6
  • 数据结构-图论-拓扑排序2
  • 数据结构-图论-最小生成树1
  • 数据结构-图论-最小生成树-kruskal6
  • 数据结构-图论-最小生成树-prime5
  • 数据结构-图论-最短路-Dijsktra4
  • 数据结构-图论-最短路-SPFA1
  • 数据结构-图论-最短路-floyd3
  • 数据结构-图论-最短路-floyd-传递闭包2
  • 数据结构-图论-最短路-floyd-求最小环1
  • 数据结构-图论-次小生成树2
  • 数据结构-图论-欧拉回路6
  • 数据结构-图论-链式前向星3
  • 数据结构-字典树5
  • 数据结构-平衡二叉树1
  • 数据结构-循环链表1
  • 数据结构-栈7
  • 数据结构-树状数组5
  • 数据结构-链表1
  • 数据结构-队列3
  • 文章1
  • 桶排序1
  • 模拟7
  • 水题17
  • 算法-Insersion Sort(插入排序)1
  • 算法-binary search(二分查找)4
  • 算法-qmul(快速乘)2
  • 算法-qpow(快速幂)3
  • 算法-qsort(快速排序)5
  • 算法-位向量法2
  • 算法-全排列6
  • 算法-动态规划16
  • 算法-动态规划-按位dp2
  • 算法-回溯法10
  • 算法-图论-广度优先搜索6
  • 算法-图论-深度优先搜索4
  • 算法-基数排序1
  • 算法-堆排序1
  • 算法-大数算法3
  • 算法-尺取法3
  • 算法-希尔排序1
  • 算法-归并排序2
  • 算法-快速选择1
  • 算法-数学题3
  • 算法-数论-卡特兰数1
  • 算法-数论-同余定理4
  • 算法-数论-扩展欧几里得1
  • 算法-数论-欧几里得2
  • 算法-数论-素数筛选法4
  • 算法-数论-费马小定理3
  • 算法-映射2
  • 算法-枚举3
  • 算法-标记,查表思想8
  • 算法-离散化4
  • 算法-计数排序1
  • 算法-贪心4
  • 算法-输入挂和输出挂1
  • 算法-预处理思想1
  • 语言-C++1
  • 语言-java基础知识74
  • 贪心1
  • 逆序对5
  • 高级数据结构-并查集5
  • 高级数据结构-线段树8
RSS

I am a slow walker, but I never walk backwards.

Powered by hexo and Theme by Pacman © 2019 yusijia