Level: advanced
Question: Write a program to implement a segment tree for range update query.
Solution:
Coming Soon....
More Problems
Write a program to implement a Fenwick tree (Binary Indexed Tree) for prefix sum queries.
Write a program to implement Dijkstra's algorithm using priority queue for shortest path in a graph.
Write a program to implement Prim's algorithm using priority queue for minimum spanning tree.
Write a program to implement Kruskal's algorithm using union-find for minimum spanning tree.
Write a program to implement Floyd-Warshall algorithm for all pairs shortest path in a graph.