Skip to content

Commit

Permalink
O(N*N) Time Complexity
Browse files Browse the repository at this point in the history
  • Loading branch information
imashiqe committed Jun 12, 2024
1 parent 4129377 commit 48f8ba5
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions datastucture/module01/O_N_square.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#include<bits/stdc++.h>

using namespace std;

int main()
{


int n;
cin>>n;
for (int i = 0; i <=n-1; i++)
{
for (int j = i+1; j<n; i++)
{
cout<<"hello"<<endl;
}

}

return 0;
}

0 comments on commit 48f8ba5

Please sign in to comment.