Life is too short for a diary

Most popular




Tue 21 Dec 2021

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






Sat 18 Dec 2021

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






Mon 13 Dec 2021

Lost Friends

Today I walked a little further,
further than yesterday.
while my feet ache and plead,
I dragged ‘em without paying any heed...

Continue reading → Tags : poetry friends audio