Tip 1: Revise core graph algorithms.
Be comfortable with shortest path concepts (like Dijkstra’s algorithm) and greedy approaches.
Tip 2: Practice coding in Python regularly.
Focus on clean implementations using lists, dictionaries, and basic libraries like heapq.
Tip 1: Highlight problem-solving.
Mention the algorithms, challenges, or technical problems you solved—not just project names.
Tip 2: List only defendable skills.
Include technologies you can confidently explain with real examples.
MCQ-based questions on the basics of Python and AI/ML.



Input:
4 5
0 1 5
0 2 8
1 2 9
1 3 2
2 3 6

In the given input, the number of vertices is 4, and the number of edges is 5.
In the input, following the number of vertices and edges, three numbers are given. The first number denotes node ‘X’, the second number denotes node ‘Y’ and the third number denotes the distance between node ‘X’ and ‘Y’.
As per the input, there is an edge between node 0 and node 1 and the distance between them is 5.
The vertices 0 and 2 have an edge between them and the distance between them is 8.
The vertices 1 and 2 have an edge between them and the distance between them is 9.
The vertices 1 and 3 have an edge between them and the distance between them is 2.
The vertices 2 and 3 have an edge between them and the distance between them is 6.
1. There are no self-loops(an edge connecting the vertex to itself) in the given graph.
2. There can be parallel edges i.e. two vertices can be directly connected by more than 1 edge.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
How do you remove whitespace from the start of a string?