Tip 1 : prepare topics
Tip 2 : read books
Tip 3 : practice coding
Tip 1 : Make it short and crisp
Tip 2 : Write what you know
Coding Round conducted on Hackerrank platform. There were 4 questions, one based on the heap, one math, one tree(a variation of max sum path), and one SQL query. Solved 2 fully, and 2 partially.



You do not need to print anything, just return the vector representation of the heap such that the input array follows 0 - based indexing and :
The left child of the ith node is at (2 * i + 1)th index.
The right child of the ith node is at (2 * i + 2)th index.
Parent of the node present at ith index is at (i - 1) / 2 indexes.
use heap



Consider following matrix:

The rectangle (1,1) to (3,3) is the rectangle with the maximum sum, i.e. 29.

use math



It started with an introduction. The interviewer was really sweet and patient. He asked me to solve 3 coding questions on the Codebunk platform.
He asked me a few questions regarding my project in web development and asked how I would integrate Ads into my website.
I mentioned Google AdSense, he asked how google AdSense works, and how cookies work.



getSize: Returns an integer. Gets the current size of the stack
isEmpty: Returns a boolean. Gets whether the stack is empty
push: Returns nothing. Accepts an integer. Puts that integer at the top of the stack
pop: Returns nothing. Removes the top element of the stack. It does nothing if the stack is empty.
getTop: Returns an integer. Gets the top element of the stack. Returns -1 if the stack is empty



‘ARR1’ = [3 6 9 0 0]
‘ARR2’ = [4 10]
After merging the ‘ARR1’ and ‘ARR2’ in ‘ARR1’.
‘ARR1’ = [3 4 6 9 10]



In the given linked list, there is a cycle, hence we return true.


Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
What is the output of print(type("Python"))?