• HOME
  • ABOUT
  • ARCHIVES
Search ...
Search ...

Archives

Total: 125

Data Structure and Algorithms | 2019-11-25

Leetcode 39. Combination Sum

Question Given an array and a target value, find all unique combination of num ...

Nick Li
Nick Li
7 min read
Data Structure and Algorithms | 2019-11-24

Leetcode 34. Find First and Last Position of Element in Sorted Array

Question Find the first and last location of target value in a sorted array. Algorithm need to run ...

Nick Li
Nick Li
5 min read
Data Structure and Algorithms | 2019-11-23

Leetcode 33. Search in Rotated Sorted Array

Question The original array is sorted, but rotated at some pivot index. We need to find the target ...

Nick Li
Nick Li
4 min read
Data Structure and Algorithms | 2019-11-19

Leetcode 31: Next Permutation

Question This problem is a bit hard to understand. Suppose we have number 123, then the permutati ...

Nick Li
Nick Li
9 min read
Java | 2019-11-18

Java 8 Optional

Java 8 introduced Optional class to avoid NullPointerException. Basically Optional class is a contai ...

Nick Li
Nick Li
6 min read
Data Structure and Algorithms | 2019-11-18

Leetcode 18: 4Sum

Question Similar to Question 15: 3Sum. This time we want to find all 4 numbers that add up to the ...

Nick Li
Nick Li
5 min read
Data Structure and Algorithms | 2019-11-16

Leetcode 16: 3Sum Closest

Question Similar to Question 15: 3Sum. This time we want to find the 3 sum that is closest to the ...

Nick Li
Nick Li
3 min read
Data Structure and Algorithms | 2019-11-15

Leetcode 15: 3Sum

Question Given an array, find all unique triplets that add up to 0 Similar Questions Easy - 1. Tw ...

Nick Li
Nick Li
6 min read
Java | 2019-11-15

How to deserialize Json content with unknown property when using Jackson

When using Jackson to deserialize a Json string, if the Java object does’t include all the fields in ...

Nick Li
Nick Li
3 min read
Data Structure and Algorithms | 2019-11-11

Leetcode 11: Container With Most Water

Question Each element of the array represents a height of a column. We want to pick 2 columns that ...

Nick Li
Nick Li
5 min read
← PREV1…10111213NEXT →
— Nick Li —

Recent Posts

  • Java Multithreading 19: Condition
  • Leetcode 228. Summary Ranges
  • Java Multithreading 18: Unfair lock
MORE →

Categories

  • Data Structure and Algorithms
  • Java
  • Spring Cloud
  • how-to-guide

Tag Cloud

Cron Expression Intellij Jackson Java 8 New Features Java Collections Leetcode - Array Leetcode - Backtracking Leetcode - Binary Search Leetcode - Bit Manipulation Leetcode - Breadth First Search Leetcode - Data Leetcode - Depth First Search Leetcode - Divde and Conquer Leetcode - Dynamic Programming Leetcode - Graph Leetcode - Greedy Leetcode - Hash Table Leetcode - Linked List Leetcode - Math Leetcode - Ordered Map Leetcode - Sliding Window Leetcode - Sort Leetcode - Stack Leetcode - String Leetcode - Topological Sort Leetcode - Tree Leetcode - Two Pointers Leetcode - Union Find Multithreading Stream API hexo
Nick Li © 2020
Hexo Casper