Skip to content

Instantly share code, notes, and snippets.

View anztrax's full-sized avatar
🏠
Working from home

andrew ananta anztrax

🏠
Working from home
View GitHub Profile
@jherr
jherr / advanced-event-handler.ts
Created May 17, 2021 14:29
Code for No BT TS - Challenge 3
class EventProcessor {
handleEvent(eventName: ..., data: ...): void {
}
addHandler(handler: ...) {
}
getProcessedEvents(): ...[] {
}
}
// https://binarysearch.com/problems/Edges-that-Disconnect-the-Graph
import java.util.*;
class Solution {
static class Result {
int lowLink;
boolean isCycle;
Result(int lowLink, boolean isCycle) {