Tip 1 : Focus more on troubleshooting in OS and Networking
Tip 2 : Practice basis coding questions
Tip 1 : Descriptive projects and previous work ex
Tip 2 : Simple and clear
MCQ Questions from every topic: Aptitude, OS, Networking, Javascript, ML, DS
2 coding question


For āNā = 10
All factors are 1, 2, 5, 10.
So, the sum of them will be 18.
Let p1, p2, ⦠pk be prime factors of n. Let a1, a2, .. ak be highest powers of p1, p2, .. pk respectively that divide n, i.e., we can write n as n = (p1a1)*(p2a2)* ⦠(pkak).
Sum of divisors = (1 + p1 + p12 ... p1a1) *
(1 + p2 + p22 ... p2a2) *
.............................................
(1 + pk + pk2 ... pkak)
We can notice that individual terms of above
formula are Geometric Progressions (GP). We
can rewrite the formula as.
Sum of divisors = (p1a1+1 - 1)/(p1 -1) *
(p2a2+1 - 1)/(p2 -1) *
..................................
(pkak+1 - 1)/(pk -1)



Input: ānā = 7, āpricesā = [100, 80, 60, 70, 60, 75, 85]
Output: [1, 1, 1, 2, 1, 4, 6]
Explanation:
On the sixth day, when the stock price was 75,
The span came out to be 4 because the last three prices(plus today) were less than the current or the sixth day's price.
Similarly, we can deduce the remaining results.
You donāt need to print anything. Just implement the given function
We see that S[i] on the day i can be easily computed if we know the closest day preceding i, such that the price is greater than on that day than the price on the day i. If such a day exists, letās call it h(i), otherwise, we define h(i) = -1.
The span is now computed as S[i] = i ā h(i).
To implement this logic, we use a stack as an abstract data type to store the days i, h(i), h(h(i)), and so on. When we go from day i-1 to i, we pop the days when the price of the stock was less than or equal to price[i] and then push the value of day i back into the stack.
Networking Troubleshooting
Asked questions on Amazon Leadership Principles and from resume
Explain the projects and problems faced in them and how did you overcame them.
Tip 1 : Try to converse with the interviewer. Be confident and relate your answers with company's leadership principles.
Tip 2 : Use situations from recent time/work examples.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
How do you remove whitespace from the start of a string?