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

Task 1551 + Missing Task Numbers from Issue #482 #502

Merged
merged 34 commits into from
Nov 1, 2021

Conversation

pulkitverma25
Copy link
Contributor

No description provided.

@pulkitverma25 pulkitverma25 changed the title Task 1551 Task 1551, 1557-1565 Oct 30, 2021
@pulkitverma25 pulkitverma25 changed the title Task 1551, 1557-1565 Task 1551, 1557-1580 Oct 30, 2021
@pulkitverma25 pulkitverma25 changed the title Task 1551, 1557-1580 Task 1551 + Missing Task Numbers from Issue #482 Oct 30, 2021
@aarunku5
Copy link
Contributor

Thanks! General comment- make sure you have at least 2 each of positive and negative examples for all your tasks.
Here are the task-wise comments for definition edits:

63:
Change Definition: "In this task, you are given inputs i and A, where i is an integer and A is a list. You need to output the first i elements of A, starting with the 1st element in A. i will always have a value less than the length of A."

64:
Change Definition: "In this task, you are given inputs i and A, where i is an integer and A is a list. You need to list all the elements of A after the first i elements. i will always have a value less than the length of A."

78:
Change Definition: "In this task, you are given inputs i and A, where i is an integer and A is a list. You need to list all the elements of A preceding the last i elements. i will always have a value less than the length of A."

91:
Change Definition: "In this task, you are given inputs i,j, and A, where i and j are integers and A is a list. You need to list all elements of A from the ith element to the jth element. i and j will be non-negative, and will always have a value less than the length of A. i will always be less than j."

99:
Change Definition: "In this task, you are given inputs i,j, and A, where i and j are integers and A is a list. You need to list all elements of A from the ith element to the jth element in the reverse order. i and j will be non-negative, and will always have a value less than the length of A. i will always be less than j."

100:
Change Definition: "In this task, you are given inputs i,j, and A, where i and j are integers and A is a list. You need to concatenate all elements of A from the ith element to the jth element, and print the resultant string. i and j will be non-negative, and will always have a value less than the length of A. i will always be less than j."

101:
Change Definition: "In this task, you are given inputs i,j, and A, where i and j are integers and A is a list. You need to find all elements of A from the ith element to the jth element, reverse the order in which they occur, and then concatenate them to output the resultant string. i and j will be non-negative, and will always have a value less than the length of A. i will always be less than j. Perform the operations in order, i.e., do not concatenate the elements and then reverse the string."

1551:
Change Definition: "In this task, you are given inputs k,i, and A, where k and i are integers and A is a list. You need to find every ith element of A starting from the kth element. The process stops when the position of the next ith element exceeds the length of the list."

267:
Change Definition: "In this task, you are given inputs i,j, and A, where i and j are integers and A is a list. You need to concatenate all elements of A from the ith element to the jth element, and then reverse the resulting string. i and j will be non-negative, and will always have a value less than the length of A. i will always be less than j. Perform the operations in order, i.e., do not reverse first and then concatenate."

506, 507:
In definitions, edit this: "Return -1 ... is in the list"

606:
Change Definition: "In this task, you are given inputs i,j, and A, where i and j are integers and A is a list. You need to return the sum of all the numerical elements in the list A between the positions i and j (including positions i and j). Return 0 if no numerical element is present in the list between the given ranges. i and j will be non-negative, and will always have a value less than the length of A. i will always be less than j. "

636:
Change Definition: "In this task, you are given an input list A comprising of numbers and alphabets. You need to extract and sort the unique alphabets in the list. The alphabets in the input list will only be in lowercase."

755:
Change Definition: "In this task, you are given two strings A,B. You must perform the following operations to generate the required output list: (i) Find the longest common substring in the strings A and B, (ii) Convert this substring to all lowercase and sort it alphabetically, (iii) Replace the substring at its respective positions in the two lists with the updated substring."

756:
Change Definition: "In this task, you are given two strings A,B. Find the longer of the two lists, convert it to lowercase, and return all the unique alphabets used in it. The two input strings are never equal."

@pulkitverma25
Copy link
Contributor Author

Thanks for the suggestions @aarunku5. I have updated the definitions as suggested and provided at least 2 examples each for both positive and negative cases for all tasks.

@aarunku5
Copy link
Contributor

aarunku5 commented Nov 1, 2021

LGTM 👍

@aarunku5 aarunku5 merged commit 7c62532 into allenai:master Nov 1, 2021
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

Successfully merging this pull request may close these issues.

3 participants