-
Notifications
You must be signed in to change notification settings - Fork 119
Solved subset problem #253
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Solved subset problem #253
Conversation
|
Please let me know how to make the changes if some further changes are to be made |
smsubset.cpp
Outdated
| { | ||
| if(j==0) | ||
| cout<<i+1<<" "; | ||
| else |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indentation
rishabhgarg25699
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@srijanakde2001 Remove extra space and extra lines
See if more changes are to be made.
rishabhgarg25699
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@srijanakde2001 Please correct them
smsubset.cpp
Outdated
| return; | ||
| } | ||
| int main() | ||
| {int n,x,i,j=0,arr[20],ans[20],m=0,narr[20]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@srijanakde2001 No indentation
smsubset.cpp
Outdated
| {int n,x,i,j=0,arr[20],ans[20],m=0,narr[20]; | ||
| cin>>n>>x; | ||
| for(i=n-1;i>=0;i--) | ||
| {cin>>arr[i]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No indentation
smsubset.cpp
Outdated
| if(g==21) | ||
| cout<<"-1"; | ||
| else | ||
| {for(i=0;i<n;i++) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No indentation
smsubset.cpp
Outdated
| cout<<"-1"; | ||
| else | ||
| {for(i=0;i<n;i++) | ||
| {if(narr[i]==garr[j]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No indentation
smsubset.cpp
Outdated
| else | ||
| {for(i=0;i<n;i++) | ||
| {if(narr[i]==garr[j]) | ||
| {if(j==0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No indentation
| else | ||
| cout<<i+1<<" "; | ||
| j++; | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No indentation
|
Thank you, I didn't no all the rules of indentation, hope now it's correct |
|
?? |
close #195