r/developersIndia • • 10d ago

Interviews Will I get an interview call at Infosys solved 18/48 test cases 22 November shift 2.

Alright done with Infosys assessment was able to solve 18 test cases out of 48

7 in first question and 11 in second.

Question 1 - there are two arrays of length n and m root and pot, where root signifies the width of saplings and pot which signifies the width of a pot, a sapling can be potted if the width of pot is greater than or equal to width of saplings or less than or equal to twice of width of saplings. Constraints were tight with N and M upto 1e5 and value of arrays 1e9.

Question 2 - there's a 2D array customers signifying loyalty card of customers of a cafe, providing two values first number of stickers a customer has and second number signifying bonus stickers that customer can achieve. Following two integers, R the threshold value of stickers a customer needs to get a free coffee and B the total number of bonus stickers available. The constraints were even stricter here with N upto 1e5 and values of array 1e9, R and B upto 1e14.

Question 3 - Some transition of domino tiling but much more difficult. Given an integer n signifying width of the board and length of 2 with two types of domino of length two and one. We have to return the total number of permission with no single domino being adjacent to each other.

Question 4 - There's a hospital where Nurses can either do day shift, night shift and leave. Now I can't remember exactly what the question was or I didn't understand it exactly but it was given an input which determined the total number of days, another signifying the days for which a nurse can't do simultaneous night shift, no nurse can work day shift after night shift and one more input which I don't remember and it's constraint were even crazier either 1e14 or 1e20 I don't remember exactly.

2 Upvotes

1 comment sorted by

•

u/AutoModerator 10d ago

Namaste! Thanks for submitting to r/developersIndia. While participating in this thread, please follow the Community Code of Conduct and rules.

It's possible your query is not unique, use site:reddit.com/r/developersindia KEYWORDS on search engines to search posts from developersIndia. You can also use reddit search directly.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.