Recent posts

Binary search for target integer in array.
AskAI Algorithms, Data Structures and Coding

This problem deals with finding a target integer within a large array of integers. The function should return the index of the target integer if it is found, or -1 if it is not found .

166
Oct 01
Longest Path in 2D Array
AskAI Algorithms, Data Structures and Coding

Given a 2D array of integers, this problem looks for the longest path from the top left to the bottom right where each step only visits cells with values greater than or equal to the current cell.

185
Oct 01
Shortest Path Between Two Cities
AskAI Algorithms, Data Structures and Coding

This problem asks for the shortest path between two cities, given a list of airline flights. This can be solved using a graph data structure, where the nodes represent cities and the edges represent flights between them.

117
Oct 01
Shortest Path Between Two Words in a List
AskAI Algorithms, Data Structures and Coding

Given a list of words, this problem seeks to find the shortest path from one word to another such that each intermediate word is also in the list. For example, if the input list is [cat, rat, bat, mat], the shortest path from cat to mat would be cat -> bat -> mat.

139
Sep 30
Shortest path in a directed graph
AskAI Algorithms, Data Structures and Coding

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.

184
Sep 30
Integer Reversal
AskAI Algorithms, Data Structures and Coding

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

189
Sep 30