Hi ١٩٦٩ [5796264349]! Welcome to the community of professional writers & copywriters. We are a @BigBrandTree unit. It's a formal community hence you must:
» Read the group description and look for specific group
» Read the group rules
Hi shikha [922483047]! Welcome to the community of professional writers & copywriters. We are a @BigBrandTree unit. It's a formal community hence you must:
» Read the group description and look for specific group
» Read the group rules
Good Array
Bob doesn't like character arrays having same consecutive character, so he calls them bad arrays. A good
array is the one which does not have any same consecutive letters. You are given a character array, make it a
good array. The only allowed operation is: If there are two same consecutive letters, delete one of them.
INPUT
The first line contains an integer T, denoting the number of test cases.
Each test case contain an character array.
OUTPUT
For each test case, print the answer to the given problem.
CONSTRAINTS
1 <= T <= 10
1 <= length of character array <= 10^5
Character array consists of only lower case letters
Sample Input
3
abb
aaab
Sample Output
ab
ab
Hi Yahaya [1158014362]! Welcome to the community of professional writers & copywriters. We are a @BigBrandTree unit. It's a formal community hence you must:
» Read the group description and look for specific group
» Read the group rules
Hi Mahar [5993839038]! Welcome to the community of professional writers & copywriters. We are a @BigBrandTree unit. It's a formal community hence you must:
» Read the group description and look for specific group
» Read the group rules
Hi Abdullah [6204060705]! Welcome to the community of professional writers & copywriters. We are a @BigBrandTree unit. It's a formal community hence you must:
» Read the group description and look for specific group
» Read the group rules
Array Challenge
Have the function ArrayChallenge(strArr) read the strArr parameter being passed which will represent two rectangles on a Cartesian coordinate plane and will contain 8 coordinates with the first 4 making up rectangle 1 and the last 4 making up rectange 2. It will be in the following format: ["(0,0),(2,2),(2,0),(0,2),(1,0),(1,2),(6,0),(6,2)"] Your program should determine the area of the space where the two rectangles overlap, and then output the number of times this overlapping region can fit into the first rectangle. For the above example, the overlapping region makes up a rectangle of area 2, and the first rectangle (the first 4 coordinates) makes up a rectangle of area 4, so your program should output 2. The coordinates will all be integers. If there's no overlap between the two rectangles return 0.
Examples
Input: ["(0,0),(0,-2),(3,0),(3,-2),(2,-1),(3,-1),(2,3),(3,3)"]
Output: 6
Input: ["(0,0),(5,0),(0,2),(5,2),(2,1),(5,1),(2,-1),(5,-1)"]
Output: 3
Hi vidya [609805545]! Welcome to the community of professional writers & copywriters. We are a @BigBrandTree unit. It's a formal community hence you must:
» Read the group description and look for specific group
» Read the group rules
There is one guy in this group name is Exam Qualify I asked for the help he requested 400rs for project and he said send 200 rs and rest after completing the project and I send him 200 rs now he did not giving me any reply.. I hope he is checking my msg.. And will stick on his word..
Читать полностью…Time Entry
Create a APIs for following functionalities (Implement necessary validations):
Time In
Time Out
Add New
Add New
Save
In
Out
Action
09:30
12:30
03:00
Delete
13:00
16:30
03:30
Delete
16:45
19:00
Duration
02:15
Delete
In Hours
Out Hours
First In
Last Out
08:45
00:45
19:00
09:30
1. Add a time entry with multiple inputs. The inputs are time in, time out.
2. Get all the list of time entry with the calculation of duration. Duration is difference betw
time in and time out hours
3. Delete the individual time entry
4. Get a record with total in hours (sum of duration), total out hours = (difference betwee and last out-the total in hours), first in, and last out