Code Monkey home page Code Monkey logo

a-december-of-algorithms-2022's People

Contributors

aadhi11 avatar abc123-ux avatar abhi-atg avatar anushka-tomar avatar asad0206 avatar deepika-govindaswamy avatar eshah122 avatar eshanthekam avatar ganeshanhari avatar gowsrini2004 avatar greednim avatar gurumurthyk avatar laganmehta avatar lakshmeeee avatar lokesh4623 avatar mugundhany avatar neha2127 avatar nijuyonkadesu avatar prasannabg avatar pravee42 avatar samriddh2703 avatar souvikpal2000 avatar sreevathsan22 avatar sruthi-v04 avatar tarpandas avatar tejasvibolla avatar thejaswinisr213 avatar vedanth-pareek avatar venkatakrishnan-ramesh avatar yesdhruv avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

a-december-of-algorithms-2022's Issues

Regarding question 5 - Don’t let Mason misspend!

I feel like there is some error in the given test cases because according to the question the fuel price increases on every 3rd day by 3 rupees and decreases on every 5th day by 2 rupees.If so the increased price will remain same untill it is decresed by 5th day right?
but the calculations in the test cases are made in such a way that it only increases on 3rd day and the next day it goes to its original value.Can you guys explaing the question well please?
Thank you

PS:) Loved solving these questions thanks to the team for taking such great effects

2nd Sample Input looks wrong

Giving the calculation will give the answer to the puzzle.
It is what you must figure out.
I'll give you a hint: you are considering only the first smallest time. You need to consider more than one. I have added a more simple sample for this approach.
The answer is 161 seconds which is equal to 2.683 minutes.

Originally posted by @neha2127 in #68 (comment)

Second Sample Input :- { 1, 4, 7, 8, 3, 2 }
Calculation :- 2+1+8+2+4+1+3+1+2 = 24 seconds = 0.4 minutes

WhatsApp Image 2022-12-29 at 9 58 03 AM
So this is the Dry run for your given Calculation.

Note : In the Question it is already told that there is only 2 Breach Suits Available so one member have to bring the Breach Suit back for remaining Tailie

& I have another doubt that in your given Calculation I can't see 7 seconds.
Have that member never left the Tail Section?

Sample Input/Output for Question 24 is correct?

As in Sample Input 1
n = 1 which represents the length of the password
k = 2 which represents that each digit in password will either be 0 or 1 i.e, [0, k-1]

But the output is
00, 01, 10 or 11
above password is of length 2

Same goes for Sample Input 2...

Regarding Pull requests

Hello,
I have noticed, for 2021 A-December-of-Algorithms, no pull requests were accepted. Is there any particular reason for doing it? Will the same trend be followed for 2022 as well ?

Personally, I feel merging requests would make it easier for other users to quickly browse between different people's solution without struggle, rather than opeing each pull requests manually, which would discourage users to learn and explore.

Furthermore, cloning the repository would lead to downloading bunch of empty folders with just .gitignore file, and it's counter intutive.

Thank you.

Need Clarity On Dec_11th Problem

Hey the explanation given by you in the dec 11th problem is not sufficient

CAN YOU GIVE SOME DETAILED EXPLANATION ABOUT HOW THE SCORE IS CALCULATED

AND WHAT IS A JUMP?

IS THE TWO STEP CONSIDERED AS A JUMP
OR EVEN A SINGLE STEP CONSIDERED AS A JUMP

In the input 1 the output is about the no of steps "8"
but in the input 2 it is about the no of jumps "3"

Thankyouu

Day 11

!! Another list is provided which contains the step that the monkey took Eg[1,1,2,1,2]. (from problem statment)

image

But That part had not been shown in the sample input
can you show the input for the above!!

Explanation in Question 16 is not appropriate.

For Example if the Sample Input is
1,1,1,1,1,1,1,6,7

According to your Explanation 6 & 7 are maximum heights.
So their is 1unit gap between 6 & 7 and height will be min(6,7) which is 6units. Resultant Area will be 6unit².

But if we take height at 0th Position which is 1 and height at 9th Position which is 7, its resultant area will be 8unit².
Calculation :
Their is 8units gap between 1 & 7 and height will be min(1,7) which is 1unit.

Conslusion :
Area found with 2nd approach is greater than 1st approach.

output for case 2 in day 3

hey In day 3 . Minesweeper
for this input and output
Input:
5
["-", "#", "-", "-", "#"],
["-", "-", "-", "-", "-"],
["-", "-", "#", "-", "-"],
["-", "#", "-", "-", "#"],
["-", "#", "-", "-", "#"]

Output:

["1", "#", "1", "1", "#"],
["1", "2", "1", "2", "1"],
["1", "2", "#", "1", "1"],
["2", "#", "3", "3", "#"],
["2", "#", "2", "2", "#"]

isint this the correct output?

[1, #, 1, 1, #]
[1, 2, 2, 2, 1]
[1, 2, #, 2, 1]
[2, #, 3, 3, #]
[2, #, 2, 2, #]

if we consider diagonal ?.

thanks.

regarding input format.

hey on the 1st question . there is no specific format for inputs.
ive considered the first line of input as number of words and the next lines as space sep hex values.
is this acceptable or is there any specific input format.

thanks

what should be done

Heyy Hii!!
THE CHALLENGE IS GOINGG REALLY WELL

But, what should be done if i was not able to solve some dayyy
it the certificate based of like day 1 to day 10 or any 10 days of the challenge

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.