Find the all possible sub arrays of an array.

How to find the all possible sub arrays of an array efficiently ?

@rashedcs You are not allowed to ask questions related to ongoing contests, you have to solve these questions by yourselves, else wait for the editorials when the contest is over.

#include<stdio.h>
void main()
{
int a[3]={1,2,3};
int b[];
for(i=0;i<3;i++)
printf("%d",b[a[i]]);
}

please abstain from asking questions related to on going contest. Try your best, if you can’t wait for editorial

4 Likes