Skip to content

Latest commit

 

History

History
70 lines (36 loc) · 1.47 KB

README.md

File metadata and controls

70 lines (36 loc) · 1.47 KB

Algorithms

Binary Search

  • loop
  • recursive

Insertion Sort

Bubble Sort

Factorial

  • Long
  • BigInteger

Euclidean Algorithm

BFS - Graph Breadth First Search

For provided graph find shortest way between start root and choosen vertex

DFS - Graph Depth First Search

The first line of input contains a positive number n, next n lines contains pairs of positive integers, where each pair identifies a connection between two vertices in a graph. Please provide a working code that will give us the answer for the following questions: how many separated graphs are in the input.

Sample:

For the input:

3
4 3
1 4
5 6

expected output is:

2


BFS - Breadth Firt Search

Return shortest way between two nodes


Dijkstra - Graph

[EN] In a weighted connected graph, find the shortest paths from the selected starting vertex to all other vertices.

[PL] W spójnym grafie ważonym znaleźć najkrótsze ścieżki od wybranego wierzchołka startowego do wszystkich pozostałych wierzchołków.

Data Structures

Linked List