life is too short for a diary

Most popular



Upvote next


Wild Marriage

“Marriages are made in heaven” is an old adage quite prevalent across all cultures. Whether heaven harbors any interest in the mortal affair has still scant empirical evidence. However, there is a rare marriage that not only invites heaven’s fury but also is consummated by mutual suicide...

Continue reading → Tags : science annihilation matter antimatter audio






Course Schedule Leetcode Solution

There are a total of numCourses courses you have to take, labeled from 0 to numCourses - 1. You are given an array prerequisites where prerequisites[i] = [ai, bi] indicates that you must take course bi first if you want to take course ai...

Continue reading → Tags : leetcode graph bfs java python






Remove-all-adjacent-duplicates-in-string-ii Solution

You are given a string s and an integer k, a k duplicate removal consists of choosing k adjacent and equal letters from s and removing them, causing the left and the right side of the deleted substring to concatenate together...

Continue reading → Tags : leetcode stack python java scala javascript