Skip to content

Instantly share code, notes, and snippets.

View nehaaa18's full-sized avatar

Neha Singh nehaaa18

  • S.R.M. Institute of Science and Technology
  • Chennai
View GitHub Profile
// Program to find minimum number of platforms
// required on a railway station
#include<iostream>
#include<algorithm>
using namespace std;
// Returns minimum number of platforms reqquired
int findPlatform(int arr[], int dep[], int n)
{
// { Driver Code Starts
#include <bits/stdc++.h>
using namespace std;
// } Driver Code Ends
/* Function to check if the given graph contains cycle
* V: number of vertices
* adj[]: representation of graph
*/