Share the joy
April 2024
May 2023
- 25: surefire, failsafe (0)
- 11: Add log4j MDC log tags in webflux (0)
- 11: Adding tags for micrometer in WebFlux (0)
- 09: Monitor micrometer with Wireshark (0)
January 2022
- 16: renderingMode. original vs template (0)
- 12: Some useful Kafka command (0)
December 2021
- 31: DynamodDb access in Java(Code) (0)
- 30: DynamoDB access in Java(structure) (0)
- 29: dependencyManagement as jar (0)
- 29: dependencyManagement vs dependencies (0)
August 2021
- 28: Design Elevators (0)
- 27: Producer, Consumer with ReentrantLock, Condition (0)
- 27: Token Bucket (0)
- 27: groupon design (0)
- 16: linux (0)
- 09: ConcurrentHashMap (0)
- 09: ReentrantLock, ReentrantReadWriteLock (0)
- 01: First iOS App (0)
July 2021
- 27: Swift (0)
- 18: spinnaker (0)
- 03: RDBMS insertion gets slow and slow (0)
June 2021
- 19: aws profile (0)
- 08: How Kinesis getShardIterator works (0)
May 2021
- 29: Thought about leaderboard (0)
- 27: Maven scope: compile, test, provided, runtime (0)
- 24: How to calculate percentile metrics (0)
- 21: Aws cli, put/get kinesis record (0)
- 21: Cache TTL consideration (0)
- 17: MVCC (0)
- 13: hungarian algorithm template (0)
- 12: binary search template (0)
- 12: 二分图Bipartie (0)
- 11: payment system keywowrd (0)
- 10: consistency model (0)
- 10: ddia chapter 5, replication (0)
- 07: Background run, nohup, & (0)
- 03: PreSum template (0)
- 03: DDIA, leaderless (0)
- 01: Base64 (0)
April 2021
- 28: short polling, long polling, websocket (0)
- 27: Union Find complexity (0)
- 24: write intensive DB. LSMTree (0)
- 19: Linearizability vs Serializability (0)
- 19: DDIA chapter 7, Replica (0)
- 19: transaction, distributed, replica keywords (0)
- 19: Isolation Level (1)
March 2021
- 29: Rewrite lock, copy-on-write (0)
- 29: Write ahead log(WAL) (0)
- 25: mysql on mac (0)
- 20: Two ways to read aws access key/secret. Different CredentialProvider (0)
- 07: Find count of sum pairs in array, which the sum is greater than target. (0)
February 2021
- 25: threshold in logger and in appender (0)
- 20: Policies setting: aws account is able to upload to s3 (0)
- 20: What is bad code, OO design from Uncle Bob (0)
- 20: Bastion host configuration and private key in ~/.ssh folder, (0)
- 10: IAM assume policy, IAM policy (0)
- 08: Flink study summary (0)
- 04: git, git merge, rebase, branch (0)
December 2020
- 10: leetcode 928 (0)
- 06: lc1595 (0)
- 05: lc1622 Fancy Sequence (0)
November 2020
- 18: Dockerfile CMD requires foreground command (0)
- 13: lc1639 (0)
- 09: lc1648 (0)
- 02: lc1641 (0)
October 2020
- 13: leetcode 1605 (0)
- 11: gray code (0)
- 05: Design Pattern summary by tech lead. (0)
- 04: Namings: Manager, Handler, Coordinator, Provider, Executor, Adaptor, Helper (0)
- 04: SRP (0)
September 2020
- 30: nginx map, geo (0)
- 30: nginx rate limiter (0)
- 29: Singleton (0)
- 29: Anti Pattern – Javabean Pattern (0)
- 29: Anti Pattern: Telescoping constructor pattern (0)
- 29: static factory pattern (0)
- 20: Bellman optimal equation for Q (0)
- 19: liner equation, non-linear equation (0)
- 14: Setup specific python version in virtualenv; setup virtualenv for PyCharm (0)
- 09: nginx (0)
August 2020
- 26: lc1546 (0)
- 23: lc1563 (0)
- 23: lc1558 (0)
- 22: lc1553 (0)
- 16: GoReplay traffic pattern change (0)
June 2020
- 03: Docker (0)
May 2020
- 22: AWS (0)
- 07: Java version switch (0)
- 07: Jenkins (0)
January 2020
- 05: TPS = connections / latency (0)
- 05: RDD vs Dataframe (0)
- 05: TCP read timeout(socket timeout), write timeout, connection timeout, HTTP request timeout (0)
- 03: Read-after-write model vs eventually consistency model (0)
December 2019
- 29: Misconfiguration in DNS Forwarding which leads ERR_TOO_MANY_REDIRECTS (0)
- 29: Setup a DNS name on GoDaddy for your host (1)
- 27: wordpress installation issues (0)
September 2019
- 30: Proxy Pattern (0)
August 2019
- 17: UML Arrows (0)
- 04: lc 600. Non-negative Integers without Consecutive Ones (0)
June 2019
- 23: lc950 Reveal Cards In Increasing Order (0)
- 22: lc945. Minimum Increment to Make Array Unique (0)
- 17: lc964. Least Operators to Express Number (0)
- 16: lc964. Least Operators to Express Number (0)
- 16: lc960. Delete Columns to Make Sorted III (0)
- 15: HEAD detached (0)
- 11: @JsonIgnoreProperties (0)
- 08: wait(), notify(), notifyAll(), sleep() (0)
- 06: Visitor pattern (0)
May 2019
- 10: lc 654 Maximum Binary Tree (0)
January 2018
- 25: Java Coding Style (0)
- 01: 2PC, 3PC (0)
December 2017
- 30: default keyword in Java (0)
- 30: Local/Instance/Class variable (0)
- 26: Vector Clock better than Lamport Clock (0)
- 16: synchronized and synchronized static (0)
March 2017
- 11: Converter (0)
- 11: Optional (0)
- 10: CacheBuilder (0)
- 10: Supplier memoization (0)
- 10: Create ExecutorService and ListeningExecutorService (0)
- 10: submit, execute, callable, runnable (0)
- 10: Stop ExecutorService (1)
February 2017
- 27: Performance Test (0)
- 24: TLS, HTTPS (0)
- 03: Lambda Generic (0)
December 2016
- 10: Logistic Regression by Scikit (0)
- 06: Logistic Regression (0)
- 05: Polynomial Linear Regression by Scikit (1)
- 04: Multivariate Linear Regression by Scikit (0)
- 04: Simple Linear Regression by Scikit (1)
November 2016
- 30: Virtualenv in PyCharm (0)
- 29: Simple Linear Regression (0)
- 22: Example of Gradient Descent (0)
October 2016
- 24: Liner Regression — an example (0)
- 09: Some feeling about GAE performance (0)
September 2016
- 12: Jump Game II (0)
- 11: First Missing Number (0)
- 11: Sudoku (0)
- 10: Arrays.asList(), Array to List (0)
- 09: Bulls and Cows (0)
- 08: Metric for bloom filter (0)
- 02: strStr (0)
- 02: Isomorphic Strings (1)
- 02: Reverse Nodes in k-Group (0)
- 02: 4Sum (0)
- 01: First Unique Character in a String (0)
- 01: Shuffling (0)
- 01: Mini Parser (0)
- 01: Lexicographical Numbers (0)
August 2016
- 30: Wiggle Subsequence (0)
- 30: Multiply String (0)
- 15: Insert Delete GetRandom O(1) – Duplicates allowed (0)
- 15: Insert Delete GetRandom O(1) (1)
- 12: 3 Sum (0)
- 12: Longest Substring Without Repeating Characters (0)
- 12: Min Stack (0)
- 10: Search in Rotated Sorted Array I & II (0)
- 06: Partition List (0)
- 06: Scramble String (0)
- 05: Merge Sorted Array (0)
- 05: Subsets II (0)
- 04: Decode Ways (0)
- 04: Reverse Linked List II (1)
- 03: Interleaving String (0)
- 01: Recover Binary Search Tree (0)
- 01: Recover Sorted Array (0)
July 2016
- 29: Morris Traversal (1)
- 28: Binary Tree Zigzag Level Order Traversal (0)
- 28: Construct Bst Preorder-Inorder, Inorder-Postorder (0)
- 28: Convert Sorted List to Binary Search Tree (0)
- 26: Flatten Binary Tree to Linked List (0)
- 23: Palindrome Partitioning II (1)
- 22: Clone Graph (0)
- 22: Gas station (0)
- 21: Candy (4)
- 20: Single Number II (0)
- 20: The Skyline Problem (0)
- 19: Word Break II (0)
- 15: Linked List Cycle II (0)
- 14: Insertion Sort List (0)
- 13: Max Points on a Line (0)
- 11: Super Power (0)
- 08: Distinct Subsequences (0)
- 07: Maximum Product Subarray (0)
- 06: ZigZag conversion (0)
- 06: Container with most water (0)
- 05: Largest Divisible Subset (0)
- 01: Sum of Two Integer (2)
- 01: Minimum Height Trees (0)
June 2016
- 30: Valid Perfect Square (0)
- 30: A decent gcd code (0)
- 29: Max subarray, and Max sub rectangle less than K (0)
- 27: Max subarray, and Max sub rectangle (1)
- 18: Counting bits (0)
- 17: Intersection of Two Linked Lists (0)
- 16: Count Numbers with Unique Digits (0)
- 13: Data Stream as Disjoint Intervals (0)
- 11: Lambda study summary (0)
- 09: D3MAP example (0)
- 09: Russian Doll Envelopes (0)
May 2016
- 19: SpringMVC Restful Service (0)
April 2016
- 20: Integer Break (0)
- 20: Flatten Nested List Iterator (0)
- 19: Power of Four (2)
- 15: Read file name when using MultiResourceItemReader in Springbatch (0)
- 15: log4j output to different log files (0)
- 11: Number of 1 Bits (1)
- 08: Define bean in SpringMVC (0)
- 05: Nested List Weight Sum (0)
- 01: Mybatis is way slower than running query in Oracle. (0)
March 2016
- 16: Basic calculators (0)
- 15: Palindrome Pairs (7)
- 02: Data Warehouse Type 2 slowly change dimension in kettle (0)
February 2016
- 29: SHOW CREATE TABLE in SqlServer (1)
- 26: Zookeeper Study Summary (0)
- 23: Self Crossing (2)
- 19: Largest BST subtree (0)
- 18: Increasing Triplet Subsequence (0)
- 16: Reconstruct Itinerary (0)
- 13: Intensive write: Mysql vs Redis (0)
- 13: Stored Procedure vs ETL Tool (0)
- 10: Difference between Varray and Nested Table in PL/SQL (0)
- 07: Number of Digit One (0)
- 04: Kafka Study Summary (0)
- 02: zookeeper java.net.ConnectException: Connection refused (0)
- 01: Verify Preorder Serialization of a Binary Tree (0)
January 2016
- 30: Find LCA in Binary Tree, Find LCA in BST (0)
- 30: Different Ways to Add Parentheses (0)
- 29: Patching Array (0)
- 28: WordDistanceI, II, III (0)
- 27: Strobogrammatic Number II, III (0)
- 26: Object.hashCode() (0)
- 25: Factor Combination (0)
- 24: Digital Root (0)
- 24: 3 Sum Smaller (0)
- 24: Single Number III (0)
- 24: Paint house II (0)
- 23: Contain function() in hashSet (1)
- 23: Generate all combination of parenthesis (0)
- 23: Number of Airplane in the sky (0)
- 22: Longest Increasing Path in a Matrix (1)
- 20: Palindrome Permutation II (0)
- 20: Permutation II (0)
- 19: Closest Binary Search Tree Value II (0)
- 19: h-index (0)
- 18: Find Celebrity (0)
- 18: Zigzag Iterator (0)
- 18: Move Zero (0)
- 18: Peeking Iterator (0)
- 16: Summaries for Game Theory (0)
- 12: Binary Indexed Tree (1)
- 10: Segment tree, lazy propagation (0)
- 07: Additive Number (0)
- 07: pascal triangle (2)
- 06: Best Time to Buy and Sell Stock with Cooldown (0)
- 06: Minimum height trees (0)
- 05: Burst Balloons (0)
- 04: Use proxy_mod to redirect apache to tomcat (0)
- 04: Remove Duplicate Letters (3)
- 03: Gray code (0)
- 03: Create maximum number (2)
- 03: Wiggle Sort II (2)
December 2015
- 27: Three tuple structure for sparse matrix, transpose and multiplication (0)
- 23: Deep Iterator (1)
- 23: Number of combination of triangle (1)
- 22: Find min distance of two list (1)
- 18: regular expression (dp solution) (0)
- 17: opg for The four operations (0)
- 17: Simple regular expression (0)
- 16: Suffix tree and ukkonen’s algorithm (0)
- 04: Tallest box (1)
- 03: Sum of Set (0)
- 03: Word Break (0)
- 02: Minimum number of coins to consist a bill (1)
- 01: Compress URL by base62 (0)
November 2015
- 28: Worm walking on a line (0)
- 28: power(a, n) in iteration way (1)
- 24: Print prime number and Number Expressible(Ugly Number) (0)
- 18: Longest palindrome starting from left side (0)
- 15: cap theorem (0)
- 13: Open Closed range in a sorted array (0)
- 11: Max Gap between consecutive numbers (0)
- 08: minimum consecutive sub-string of S containing T (0)
- 05: Word Ladder (0)
October 2015
- 29: possible sum of a number (0)
- 25: Wild card match (0)
- 23: Permutation, Subset, All group of Palindrome (1)
- 22: Minimum palindrome partition (0)
- 20: super set by bit array (0)
- 20: Best Time to Buy and Sell Stock III (0)
- 20: Buy stock to get max profit with at most K times (0)
- 16: Get max histogram rectangle (0)
- 16: Longest valid parentheses (0)
- 12: The Maximum Volume of Trapped Rain Water (0)
- 01: Convert to sum tree by post-order threaded binary tree (0)
- 01: Convert to sum tree by post-order threaded binary tree (0)
September 2015
- 30: Longest palindrome in a string (0)
- 30: Find values at kth row are 0 and kth column in a 2D matrix are 1 (0)
- 19: LRU Cache by hashmap and doubly-linked-list (0)
August 2015
- 03: Springbatch cursor reader (0)
- 03: Serialize, deserialize tree (0)
- 01: Pickup coin/gold (0)
July 2015
- 18: Determines whether a 2d-integer array contains duplicate values within k (0)
- 18: Ftp in java (0)
- 18: Sftp in java (0)
- 14: Mock private variable (0)
- 02: Springbatch transaction manager (0)
June 2015
- 24: Group sort (0)
- 12: Consistent Hashing Algorithm (0)
- 10: ssh-keygen (0)
- 09: Maven, make a fat jar (0)
- 08: Simple easymock example (0)
- 06: Find two strings which can group into palindrome (0)
- 05: Find palindrome in Tree (1)
May 2015
- 29: Least Perfect Square (0)
- 29: Translate query from mysql to oracle (0)
- 26: Weighted Reservoir Sampling (0)
- 26: Reservoir Sampling (0)
- 24: Water jug problem (0)
- 24: gcd (0)
- 20: HMAC summary (0)
- 18: Rolling hash. O(1) time to compute queue’s hash (0)
- 13: Add maven to project (0)
- 06: Merge sort linkedlist (0)
- 06: Select distinct max in sql (0)
April 2015
- 30: log4j (0)
- 28: Mysql Million rows test: insertion (0)
- 28: Mysql Million rows test: select, join (0)
- 18: Javascript debug in chrome (0)
- 18: Google Oauth 2.0 (0)
- 13: Read json (0)
- 09: Read Spring Batch parameter to bean (0)
- 08: Set command line parameters in Intellij (0)
- 05: Run class in jar file (0)
- 04: Cuckoo hashmap (0)
March 2015
- 31: Spring Batch run by Spring Batch Admin (0)
- 31: Spring Batch run by Console (0)
- 31: Spring Batch Basic (0)
- 11: Explanation for pom.xml (0)
- 11: AngularJS exercise 1 (0)
February 2015
- 28: Text justification (0)
- 27: Rearrange array (0)
- 26: Circle Sort (0)
- 16: JWT sample, and implementation in node.js and java (0)
- 14: Amazon interview(Software engineer) (0)
- 11: Next greater element (0)
- 11: Return index with probability proportional to its weight (0)
- 11: Find peak in matrix (0)
- 11: Find all intervals covering an integer (0)
- 01: Qaz (0)
- 01: Detect circle in directed graph — DFS (0)
- 01: Find the median in an array, by using heap (0)
January 2015
- 31: Detect circle in graph (0)
- 31: Next greater element (0)
- 31: Sort array to bst (0)
- 31: Cycle queue (0)
- 31: Find the first value smaller than target value in sorted array (0)
- 28: Weighted Job Scheduling (0)
- 27: Order statistic tree (0)
- 27: Find the sequence in an array with largest sum (0)
- 27: Find range in BST (0)
- 23: About Github (0)
- 21: Adjust a positive array to be sorted with minimum cost (0)
- 18: Weekly challenge2 – DescendPrint3 (0)
- 18: Weekly challenge2 – DescendPrint2 (0)
- 17: Weekly challenge2 – DescendPrint (0)
- 17: Weekly challenge1 – Find the char which repeats most (0)
- 14: Segment tree2 (0)
- 14: Segment tree1 (0)
- 10: Jaccard distance (0)
- 09: Topological sorting by dfs (0)
- 07: Find diameter trail (1)
- 04: Queue with min and max value (0)
- 02: Find order of characters in alien language (0)
- 02: Lowest cost to adjust integer array, adjacencies differ less than k (1)
- 02: Count bounded slices 2 – O(n) solution (0)
- 01: Find min sublist (0)
December 2014
- 31: Count bounded slices (0)
- 31: Sort according to another array (0)
- 30: Crack razzle adventure game – dfs, backtrack implementation (0)
- 27: Partition an array by an uncertain pivot, only by one trip (1)
- 26: Find median or Kth number in 2 sorted array (0)
- 25: Balance server capacity (0)
- 24: Find median out of 5 numbers (0)
- 24: Find the closest leaf in a Binary Tree (0)
- 22: Patricia Tree (0)
- 20: Find weighted median in matrix (0)
- 20: Find weighted median in an array — meeting problem (0)
- 20: Burning candle problem (0)
- 19: Arrange the integers 1 to N such the position of the average of two numbers (if present) falls outside the two numbers (0)
- 18: Catalan numbers (0)
- 16: Find the median in an array (0)
- 16: Division with cycle remainder (0)
- 16: Construct BST by in-order traversal (0)
- 11: Find the largest BST in a Binary Tree (0)
November 2014
- 30: Check if a tree is a sum tree (0)
- 30: Convert a given tree to sum tree (0)
- 30: Page visit problem (0)
- 30: Find longest substring without repeating (0)
- 30: Find max difference two elements (0)
- 30: Find TopK value, by small heap (0)
- 30: find the path between nodes in binary tree (0)
- 30: find lca(lowest common ancestry) in a binary tree (1)
- 26: PostOrderTraverse (0)
- 25: Solve the problem that hive is pending for a long time for MapReduce select (0)
- 13: 0-1 knapsack problem (0)
- 09: window.opener only works on server, but not on local machine (0)
October 2014
- 29: Build_Jdbc_connection_to_Hive (0)
- 29: Create hadoop work environment in myeclipse (0)
- 29: Format of Mapper and Reducer (0)
- 29: HA Federation on Hadoop2.0 (0)
- 29: Hadoop ecosystem (0)
- 29: Run remote wordcount mapreduce from eclipse in windows8 (0)
- 29: HQL3 (0)
- 29: HQL2 (0)
- 29: HQL1 (0)
- 29: MapReduce process on Yarn (0)
- 29: Install hadoop on CentOS (0)
- 24: Install Hive (0)