Skip to content

Instantly share code, notes, and snippets.

View M-Shehu's full-sized avatar
😬

Muhammad Shehu M-Shehu

😬
View GitHub Profile
@M-Shehu
M-Shehu / List_Of_Resources.md
Last active August 1, 2021 08:58
List of resources of my development tools

My Software Development Resource List

This is a curated list of my resources I use for software development. This list is mainly focused on tools I use for front-end development for now but will be updated in the nearest future to include my backend tools as well. Do leave a comment down below if you find this list helpful or you think there's a really cool tool missing from this list. I'll check the tool out and I'll update the list accordingly.

Contents of this list

The list is divided into 3 different categories:

@M-Shehu
M-Shehu / hasPathToSum.js
Created March 28, 2019 16:37
Given some target sum, the function returns true if there is any path starting from the root and ending in a leaf, such that adding up all the values along the path equals the given sum.
const hasPathToSum = function(node, targetSum) {
// your code here
let isTotal = null;
if (targetSum === node.value) {
return true;
} else {
if (node.left === null && node.right === null) {
return false;
}