Given a binary tree and a number, return true if the tree has a root-to-leaf path such that adding up all the values along the path equals the given number. Return fa...

Share

Given a Weighted Directed Acyclic Graph (DAG) and a source vertex s in it, find the longest distances from s to all other vertices in the given graph.
The longest pa...

Share

The problem is to count all the possible paths from top left to bottom right of a mXn matrix with the constraints that from each cell you can either move only to...

Share

Given a graph and a source vertex in the graph, find shortest paths from source to all vertices in the given graph.
Dijkstra’s algorithm is very similar to Pr...

Share

A file path specifies the location of a file inside a web folder structure. Its like an address of a file which helps the web browser to access the files. File paths ...

Share

The Location pathname property in HTML is used to set or return the pathname of a URL. The Location pathname property returns a string which represents the pathname o...

Share

The pathinfo() is an inbuilt function which is used to return information about a path using an associative array or a string.
The returned array or string contains t...

Share

The realpath() function in PHP is an inbuilt function which is used to return the canonicalized absolute pathname.
The realpath() function removes all symbolic links ...

Share

The SplFileInfo::getRealPath() function is an inbuilt function of Standard PHP Library (SPL) in PHP which is used to get absolute file path.
Syntax:
int SplFileInfo:...

Share

The SplFileInfo::getPathInfo() function is an inbuilt function of Standard PHP Library (SPL) in PHP which is used to get an SplFileInfo object for the path.
Syntax:
S...

Share