mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-05-05 20:48:22 +08:00
Replaced array of tuples with vector of tuples
This commit is contained in:
@@ -17,9 +17,6 @@ using std::tuple;
|
||||
using std::endl;
|
||||
using std::left;
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @brief Comparator class for Priority queue
|
||||
* S: Data type of Process id
|
||||
@@ -156,7 +153,7 @@ int main(){
|
||||
|
||||
//Sample test case
|
||||
int n = 3;
|
||||
tuple<int, int, int> input[n] = {
|
||||
vector<tuple<int, int, int>> input = {
|
||||
make_tuple(1, 0, 30),
|
||||
make_tuple(2, 0, 5),
|
||||
make_tuple(3, 0, 5)
|
||||
|
||||
Reference in New Issue
Block a user