Skip to content
 
 

Latest commit

 

History

489 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Questions for Day 1 - (21/06/2024)

DSA

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:

  1. The segment length matches Raju's birth month.
  2. The sum of the numbers in the segment equals Raju's birth day.
Inputs:
  • An array of integers representing the chocolate squares.

  • Two integers representing Raju's birth day and birth month.

Output:
  • The number of valid ways to divide the bar.
Example:

Candy = [2, 2, 1, 3, 2]

day = 4

month = 2

Output: 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.

Inputs:
  • An array of integers.

  • An integer k.

Output:
  • The number of valid (i, j) pairs.
Example:

arr = [1, 3, 2, 6, 1, 2]

k = 3

Output: 5

WebDev

In order to run html file use live server extension on VSCODE.

  1. Create Two buttons one with your name and other with your SapID.

    image

  2. Create a paragraph and write two different sentences in the below mentioned manner.

    image

  3. Create a link to www.upesacmw.org with the help of anchor tag using href tag.

    image

*Clicking on the mentioned anchor should go to the ACMW website. *

  1. The above-mentioned anchor should open a website in a new tab.

  2. Replicate the image below. (Keep the code safe with you as you will make changes in this in future)

    image

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages