Category: ACM

11
Jul
2017

Bellman Ford

It works on negative cycle. Implemented Code: Time Complexity: O([E].[V]) Reference: http://cyberlingo.blogspot.com/2015/07/bellman-ford-algorithm.html

10
Jul
2017

Dijkstra

#include<bits/stdc++.h> using namespace std; int main(){ int cost[10][10],path[10][10],i,j,n,p,v,min,index=1; int distance[10],row,column; cout<<“Enter no. of nodes: “; cin>>n; cout<<“Enter…

10
Jul
2017

Topological Sort

https://www.youtube.com/watch?v=Q9PIxaNGnig/ code: // A Java program to print topological sorting of a DAG import java.io.*; import java.util.*;…

08
Jul
2017

HackerEarth: Batman and Tick-tack-toe

This is a basic implementaation problem but need to think critically and I used editorial + previous solved…

07
Jul
2017

Bucket Sort

Pseudocode: bucketSort(arr[], n) 1) Create n empty buckets (Or lists). 2) Do following for every array element…

07
Jul
2017

Radix Sort

best video: pseudocode: Radix-Sort(A, d) //It works same as counting sort for d number of passes. //Each…