Algorithms

Shortest path in a directed graph
AskAI

The problem is to find the shortest path in a directed graph from the source vertex to the destination vertex. The graph may be disconnected, have cycles, or have negative edge weights.

Integer Reversal
AskAI

Given a list of integers, this program outputs the integers in reverse order.

Find the shortest word in a list
AskAI

Given a list of words, this program outputs the shortest word in the list. If there are multiple shortest words, it outputs the first one in alphabetical order.

Shortest path between two nodes in a graph
AskAI

Given a graph, find the shortest path between two nodes.