Skip to content
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

hacktoberfest #2

Open
ritikagarg0326 opened this issue Oct 2, 2021 · 4 comments
Open

hacktoberfest #2

ritikagarg0326 opened this issue Oct 2, 2021 · 4 comments
Assignees

Comments

@ritikagarg0326
Copy link
Owner

t=int(input())
for i in range(t):
n=int(input())
count=0
mac=0
arr=[]
for i in range(1,n+1):
arr.append(i)
if n==1:
print(1)
else:
for i in range(len(arr)):
if (arr[i] & arr[i+1])>0:
count=arr[i] & arr[i+1]
mac=max(mac,count)
print(mac)

@Ritika457
Copy link
Contributor

Can you please assign this issue to me. I can fix it.

@ritikagarg0326
Copy link
Owner Author

Can you please assign this issue to me. I can fix it.

generate pr

@Ritika457
Copy link
Contributor

@ritikagarg0326 first you have to assign this to me. Only then i can generate pr.Take help from youtube to see how to assign this to me.
Please do assign it to me.

@nancy-singh10
Copy link

hey assign me this isssue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants