This repository has been archived by the owner on Nov 3, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 280
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
3 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#include "bits/stdc++.h" | ||
using namespace std; | ||
|
||
int main(){ | ||
long long n; | ||
cin>>n; | ||
long long x = floor(sqrt(n)); | ||
for(long long i = 1;i<=x;i++){ | ||
cout<<(i*i)<<endl; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
### Odd Divisors problem | ||
|
||
Take input N | ||
Range of 1<=N <=1e18 | ||
Print all numbers having odd divisors in the range [1,n] | ||
|
||
#### Approach : Number which are perfect squares they have odd divisors (Complexity(O(sqrt(n)))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -146,5 +146,10 @@ | |
"githubUsername": "vimall03" | ||
}, | ||
|
||
{ | ||
"name":"Jasleen Kaur", | ||
"githubUsername": "7SepRash" | ||
}, | ||
|
||
] | ||
|