Coding-Ninjas icon indicating copy to clipboard operation
Coding-Ninjas copied to clipboard

Problems at Coding Ninjas

Results 4 Coding-Ninjas issues
Sort by recently updated
recently updated
newest added

#include using namespace std; #define ll long long int #define ull unsigned long long int #define shazam ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL); #define M 1000000007 #define pb(x) push_back(x) #define m_p(x,y) make_pair(x,y) ll gcd(ll a,...

simplified the code and explained line to line

Given an undirected and disconnected graph G(V, E), print its BFS traversal. Here you need to consider that you need to print BFS path starting from vertex 0 only. V...

Implement the function RemoveMin for the min priority queue class. For a minimum priority queue, write the function for removing the minimum element present. Remove and return the minimum element.