Algorithms

### [LeetCode 437] Path Sum III

https://leetcode.com/problems/path-sum-iii/ You are given a binary tree in which each node contains an ...
Algorithms

### [LeetCode 797] All Paths From Source to Target

Given a directed acyclic graph (DAG) of n nodes labeled from 0 to n – 1, find ...
Algorithms

### [LeetCode 257] Binary Tree Paths

https://leetcode.com/problems/binary-tree-paths/ Given a binary tree, return all root-to-leaf paths. Note: A leaf is a ...
Algorithms

### [LeetCode 841] Keys and Rooms

There are N rooms and you start in room 0.  Each room has a distinct number ...
Algorithms

### [LeetCode 1129] Shortest Path with Alternating Colors

Consider a directed graph, with nodes labelled 0, 1, ..., n-1.  In this graph, ...
Algorithms

### [LeetCode 337] House Robber III

https://leetcode.com/problems/house-robber-iii/ The thief has found himself a new place for his thievery again. ...
Algorithms

### [LeetCode 997] Find the Town Judge

https://leetcode.com/problems/find-the-town-judge/ In a town, there are N people labelled from 1 to N.  There is a rumor that ...
Algorithms

### [HackerRank] Cards Permutation

Alice was given the  integers from  to . She wrote all possible permutations in increasing lexicographical ...
Algorithms

### [HackerRank] Extra Long Factorials

Factorial of a number can be calculated by simply multiplying values N * ...
Algorithms