Code360 powered by Coding Ninjas X Naukri.com. Code360 powered by Coding
Ninjas X Naukri.com

Hike interview experience Real time questions & tips from candidates to crack your interview

Hike

1 rounds | 4 Coding
problems

Preparation

Duration: 2.5 months

Topics: Data Structures, Pointers, OOPS, System Design, Algorithms, Dynamic Programming

Tip

Tip 1 : Do at least 1 project.

Tip 2 : Practice data structure questions.

Tip 3 : Dynamic programming is must.

Application process

Where: Campus

Eligibility: Above 7 CGPA

Resume tip

Tip 1 : Do not put false things.

Tip 2 : Keep it short and direct.

01

Round

Medium

Online Coding Test

Duration90 minutes

Interview date16 Feb 2021

Coding problem4

Timing was 10AM. The platform was quite good.

```
In the above image, areas in green, red, and violet color are all submatrices of the original 4x4 matrix.
```

```
1. Binary valued matrix has only two values in each cell : 0 and 1.
2. A submatrix is a matrix formed by selecting certain rows and columns from a larger matrix.
3. The area of a matrix with 'h' rows and 'w' columns is equal to 'h' * 'w'.
```

```
1. A ‘path’ is a sequence of adjacent pair nodes with an edge between them in the binary tree.
2. The ‘path’ doesn’t need to pass through the root.
3. The ‘path sum’ is the sum of the node’s data in that path.
```

```
For the given input array [4, 3, 2, 1], the minimum no. of swaps required to sort the array is 2, i.e. swap index 0 with 3 and 1 with 2 to form the sorted array [1, 2, 3, 4].
```

```
Infix notation is a method of writing mathematical expressions in which operators are placed between operands.
For example, "3 + 4" represents the addition of 3 and 4.
Postfix notation is a method of writing mathematical expressions in which operators are placed after the operands.
For example, "3 4 +" represents the addition of 3 and 4.
Expression contains digits, lower case English letters, ‘(’, ‘)’, ‘+’, ‘-’, ‘*’, ‘/’, ‘^’.
```

```
Input: exp = ‘3+4*8’
Output: 348*+
Explanation:
Here multiplication is performed first and then the addition operation. Hence postfix expression is 3 4 8 * +.
```

Here's your problem of the day

Solving this problem will increase your chance to get selected in this company

Which is a DDL command in SQL?

Choose another skill to practice

Start a Discussion

Similar interview experiences

SDE - Intern

1 rounds | 4 problems

Interviewed by Hike

1851 views

0 comments

0 upvotes

SDE - Intern

2 rounds | 2 problems

Interviewed by Hike

750 views

0 comments

0 upvotes

SDE - Intern

4 rounds | 7 problems

Interviewed by Hike

1223 views

0 comments

0 upvotes

SDE - Intern

3 rounds | 7 problems

Interviewed by Hike

327 views

0 comments

0 upvotes

Companies with similar interview experiences

SDE - Intern

3 rounds | 6 problems

Interviewed by Amazon

13316 views

4 comments

0 upvotes

SDE - Intern

4 rounds | 7 problems

Interviewed by Microsoft

12330 views

1 comments

0 upvotes

SDE - Intern

2 rounds | 4 problems

Interviewed by Amazon

8890 views

2 comments

0 upvotes