The following full source code contains the solution for the Hackerrank 30daysofcode Day 4 solution. usingSystem;usingSystem.Collections.Generic;usingSystem.IO;classPerson{publicintage;publicPerson(intinitialAge){// Add some more code to run some checks on initialAgeif(initialAge>=0){age=initialA...
BFS and DFS - know their computational complexity, their tradeoffs, and how to implement them in real code When asked a question, look for a graph-based solution first, then move on if none. MIT(videos): Breadth-First Search Depth-First Search Skiena Lectures - great intro: CSE373 2012 ...