Question 1:
Rohan and Raju have a candy where each square has a number. Rohan wants to find out how many ways she can break the bar into a contiguous segment such that:
- The segment length matches Raju's birth month.
- The sum of the numbers in the segment equals Raju's birth day.
-
An array of integers representing the chocolate squares.
-
Two integers representing Raju's birth day and birth month.
- The number of valid ways to divide the bar.
Candy = [2, 2, 1, 3, 2]
day = 4
month = 2
Question 2:
Given an array of integers and an integer k, determine the number of (i, j) pairs where i < j and the sum of the pair is divisible by k.
-
An array of integers.
-
An integer k.
- The number of valid (i, j) pairs.
arr = [1, 3, 2, 6, 1, 2]
k = 3
In order to run html file use live server extension on VSCODE.
-
Create Two buttons one with your name and other with your SapID.
-
Create a paragraph and write two different sentences in the below mentioned manner.
-
Create a link to www.upesacmw.org with the help of anchor tag using href tag.
*Clicking on the mentioned anchor should go to the ACMW website. *



