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
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
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