06. Sorting/kasai_algorithm.cpp
void printArr(vector<int>arr, int n)
{
    for (int i = 0; i < n; i++)
        cout << arr[i] << " ";
    cout << endl;
}
// Utility function to print an array
Utility function to print an array
Utility function to print an array
void printArr(vector<int>arr, int n)
{
    for (int i = 0; i < n; i++)
        cout << arr[i] << " ";
    cout << endl;
}
void printArr ( vector < int > arr , int n ) { for ( int i = 0 ; i < n ; i ++ ) cout << arr [ i ] << " " ; cout << endl ; }
Utility function to print an array
Utility function to print an array