Upload Button Icon Add office photos

Hike

Compare button icon Compare button icon Compare

Filter interviews by

Hike Software Developer Intern Interview Questions and Answers

Updated 16 Sep 2021

8 Interview questions

A Software Developer Intern was asked
Q. 

Infix to Postfix Conversion

Convert a given infix expression, represented as a string EXP, into its equivalent postfix expression.

Explanation:

An infix expression is formatted as a op b where the operat...

Ans. 

Convert infix expression to postfix expression.

  • Use a stack to keep track of operators and operands.

  • Follow the rules of precedence for operators.

  • Handle parentheses to ensure correct order of operations.

A Software Developer Intern was asked
Q. 

Maximum Difference in Matrix

Given an n x n matrix mat[n][n] of integers, find the maximum value of mat[c][d] - mat[a][b] for all possible indices where c > a and d > b.

Input:

The first line conta...
Ans. 

Find the maximum difference between elements in a matrix with specific conditions.

  • Iterate through all possible pairs of indices (a, b) and (c, d) where c > a and d > b.

  • Calculate the difference between mat[c][d] and mat[a][b] for each pair.

  • Keep track of the maximum difference found so far.

  • Return the maximum difference as the final result.

Software Developer Intern Interview Questions Asked at Other Companies

Q1. Sum of Maximum and Minimum Elements Problem Statement Given an ar ... read more
asked in Amazon
Q2. Fish Eater Problem Statement In a river where water flows from le ... read more
asked in Apple
Q3. Kevin and his Fruits Problem Statement Kevin has 'N' buckets, eac ... read more
asked in CommVault
Q4. Sliding Maximum Problem Statement Given an array of integers ARR ... read more
Q5. Reverse Words in a String: Problem Statement You are given a stri ... read more
🔥 Asked by recruiter 2 times
A Software Developer Intern was asked
Q. 

Maximum Size Rectangle Sub-matrix with All 1's Problem Statement

You are provided with an N * M sized binary matrix 'MAT' where 'N' denotes the number of rows and 'M' denotes the number of columns. Your ta...

Ans. 

Find the maximum area of a submatrix with all 1's in a binary matrix.

  • Iterate over each cell in the matrix and calculate the maximum area of submatrix with that cell as the top-left corner.

  • Use dynamic programming to keep track of the maximum width of 1's ending at each cell.

  • Update the maximum area as you iterate through the matrix.

  • Return the maximum area found.

🔥 Asked by recruiter 2 times
A Software Developer Intern was asked
Q. 

Binary Tree Maximum Path Sum Problem Statement

Determine the maximum path sum for any path in a given binary tree with 'N' nodes.

Note:

  • A 'path' is defined as any sequence of adjacent nodes connected ...
Ans. 

Find the maximum path sum in a binary tree with 'N' nodes.

  • Traverse the binary tree to find the maximum path sum.

  • Keep track of the maximum sum encountered so far.

  • Consider all possible paths in the tree to find the maximum sum.

  • Example: For input 1 2 3 4 -1 5 6 -1 -1 -1 -1 -1 -1, the maximum path sum is 16.

🔥 Asked by recruiter 3 times
A Software Developer Intern was asked
Q. 

Minimum Number of Swaps to Sort an Array

Find the minimum number of swaps required to sort a given array of distinct elements in ascending order.

Input:

T (number of test cases)
For each test case:
N (size...
Ans. 

The minimum number of swaps required to sort a given array of distinct elements in ascending order.

  • Use a graph-based approach to find cycles in the array for swapping

  • Count the number of swaps needed to sort the array

  • Example: For [4, 3, 2, 1], 2 swaps are needed to sort it to [1, 2, 3, 4]

🔥 Asked by recruiter 2 times
A Software Developer Intern was asked
Q. 

Prefix to Infix Conversion

Transform a string representing a valid Prefix expression, which may contain operators '+', '-', '*', '/', and uppercase letters, into its corresponding Infix expression.

Exampl...

Ans. 

Convert a valid Prefix expression to its corresponding Infix expression.

  • Use a stack to store operands and operators while traversing the prefix expression from right to left.

  • Pop operands from the stack and form the infix expression by placing them between corresponding operators.

  • Handle the precedence of operators to ensure correct order of operations in the infix expression.

A Software Developer Intern was asked
Q. 

Maximum Size Rectangle Sub-Matrix with All 1's

Given an N x M binary matrix 'MAT', where N is the number of rows and M is the number of columns, determine the maximum area of a submatrix consisting entirel...

Ans. 

Find the maximum area of a submatrix consisting entirely of 1's in a binary matrix.

  • Iterate over each cell in the matrix and calculate the maximum area of a submatrix with that cell as the top-left corner.

  • Use dynamic programming to keep track of the maximum width of 1's ending at each cell in the current row.

  • Update the maximum area as you iterate through the matrix and consider each cell as the bottom-right corner ...

Are these interview questions helpful?
A Software Developer Intern was asked
Q. 

Maximum Sum Path in a Binary Tree

Your task is to determine the maximum possible sum of a simple path between any two nodes (possibly the same) in a given binary tree of 'N' nodes with integer values.

Exp...

Ans. 

Find the maximum sum of a simple path between any two nodes in a binary tree.

  • Use a recursive approach to traverse the binary tree and calculate the maximum sum path.

  • Keep track of the maximum sum path found so far while traversing the tree.

  • Consider negative values in the path sum calculation to handle cases where the path can skip nodes.

  • Update the maximum sum path if a new path with a higher sum is found.

Hike Software Developer Intern Interview Experiences

4 interviews found

I appeared for an interview in Feb 2021.

Round 1 - Coding Test 

(4 Questions)

Round duration - 90 minutes
Round difficulty - Medium

Timing was 10AM. The platform was quite good.

  • Q1. 

    Maximum Size Rectangle Sub-matrix with All 1's Problem Statement

    You are provided with an N * M sized binary matrix 'MAT' where 'N' denotes the number of rows and 'M' denotes the number of columns. Your t...

  • Ans. 

    Find the maximum area of a submatrix with all 1's in a binary matrix.

    • Iterate over each cell in the matrix and calculate the maximum area of submatrix with that cell as the top-left corner.

    • Use dynamic programming to keep track of the maximum width of 1's ending at each cell.

    • Update the maximum area as you iterate through the matrix.

    • Return the maximum area found.

  • Answered by AI
  • Q2. 

    Binary Tree Maximum Path Sum Problem Statement

    Determine the maximum path sum for any path in a given binary tree with 'N' nodes.

    Note:

    • A 'path' is defined as any sequence of adjacent nodes connected...
  • Ans. 

    Find the maximum path sum in a binary tree with 'N' nodes.

    • Traverse the binary tree to find all possible paths and calculate their sums.

    • Keep track of the maximum sum encountered during traversal.

    • Consider both left and right child nodes while calculating the path sum.

    • Handle null nodes represented by '-1' in the input.

    • Return the maximum path sum for each test case.

  • Answered by AI
  • Q3. 

    Minimum Number of Swaps to Sort an Array

    Find the minimum number of swaps required to sort a given array of distinct elements in ascending order.

    Input:

    T (number of test cases)
    For each test case:
    N (siz...
  • Ans. 

    The minimum number of swaps required to sort a given array of distinct elements in ascending order.

    • Use graph theory to solve the problem by counting cycles in the permutation.

    • The number of swaps needed is equal to the number of cycles in the permutation minus one.

    • Consider using a hashmap to keep track of visited elements to optimize the solution.

    • Example: For input array [4, 3, 2, 1], the minimum number of swaps require...

  • Answered by AI
  • Q4. 

    Infix to Postfix Conversion

    Convert a given infix expression, represented as a string EXP, into its equivalent postfix expression.

    Explanation:

    An infix expression is formatted as a op b where the opera...

  • Ans. 

    Convert infix expression to postfix expression.

    • Use a stack to keep track of operators and operands.

    • Follow the rules of precedence for operators.

    • Handle parentheses to ensure correct order of operations.

  • Answered by AI

Interview Preparation Tips

Professional and academic backgroundI applied for the job as SDE - Intern in DelhiEligibility criteriaAbove 7 CGPAHike interview preparation:Topics to prepare for the interview - Data Structures, Pointers, OOPS, System Design, Algorithms, Dynamic ProgrammingTime required to prepare for the interview - 2.5 monthsInterview preparation tips for other job seekers

Tip 1 : Do at least 1 project.
Tip 2 : Practice data structure questions.
Tip 3 : Dynamic programming is must.

Application resume tips for other job seekers

Tip 1 : Do not put false things.
Tip 2 : Keep it short and direct.

Final outcome of the interviewRejected

Skills evaluated in this interview

I appeared for an interview in Feb 2021.

Round 1 - Coding Test 

(4 Questions)

Round duration - 90 minutes
Round difficulty - Medium

Timing was 10AM. The platform was quite good.

  • Q1. 

    Maximum Size Rectangle Sub-Matrix with All 1's

    Given an N x M binary matrix 'MAT', where N is the number of rows and M is the number of columns, determine the maximum area of a submatrix consisting entire...

  • Ans. 

    Find the maximum area of a submatrix consisting entirely of 1's in a binary matrix.

    • Iterate over each cell in the matrix and calculate the maximum area of a submatrix with that cell as the top-left corner.

    • Use dynamic programming to keep track of the maximum width of 1's ending at each cell in the current row.

    • Update the maximum area as you iterate through the matrix and consider each cell as the bottom-right corner of th...

  • Answered by AI
  • Q2. 

    Maximum Sum Path in a Binary Tree

    Your task is to determine the maximum possible sum of a simple path between any two nodes (possibly the same) in a given binary tree of 'N' nodes with integer values.

    Ex...

  • Ans. 

    Find the maximum sum of a simple path between any two nodes in a binary tree.

    • Use a recursive approach to traverse the binary tree and calculate the maximum sum path.

    • Keep track of the maximum sum path found so far while traversing the tree.

    • Consider negative values in the path sum calculation to handle cases where the path can skip nodes.

    • Update the maximum sum path if a new path with a higher sum is found.

  • Answered by AI
  • Q3. 

    Minimum Number of Swaps to Sort an Array

    Find the minimum number of swaps required to sort a given array of distinct elements in ascending order.

    Input:

    T (number of test cases)
    For each test case:
    N (siz...
  • Ans. 

    The minimum number of swaps required to sort a given array of distinct elements in ascending order.

    • Use a graph-based approach to find cycles in the array for swapping

    • Count the number of swaps needed to sort the array

    • Example: For [4, 3, 2, 1], 2 swaps are needed to sort it to [1, 2, 3, 4]

  • Answered by AI
  • Q4. 

    Prefix to Infix Conversion

    Transform a string representing a valid Prefix expression, which may contain operators '+', '-', '*', '/', and uppercase letters, into its corresponding Infix expression.

    Examp...

  • Ans. 

    Convert a valid Prefix expression to its corresponding Infix expression.

    • Use a stack to store operands and operators while traversing the prefix expression from right to left.

    • Pop operands from the stack and form the infix expression by placing them between corresponding operators.

    • Handle the precedence of operators to ensure correct order of operations in the infix expression.

  • Answered by AI

Interview Preparation Tips

Professional and academic backgroundI completed Computer Science Engineering from Chitkara University. I applied for the job as SDE - Intern in New DelhiEligibility criteriaAbove 8 CGPAHike interview preparation:Topics to prepare for the interview - Data Structure,OOPS, Java, Graphs, PointersTime required to prepare for the interview - 2 monthsInterview preparation tips for other job seekers

Tip 1 : Do at least 1 project.
Tip 2 : Practice data structure questions.
Tip 3 : Dynamic programming is must.

Application resume tips for other job seekers

Tip 1 : Do not put false things.
Tip 2 : Keep it short and direct.

Final outcome of the interviewRejected

Skills evaluated in this interview

I appeared for an interview in Feb 2021.

Round 1 - Coding Test 

(4 Questions)

Round duration - 90 minutes
Round difficulty - Medium

Timing was 10AM. The platform was user-friendly.

  • Q1. 

    Maximum Size Rectangle Sub-matrix with All 1's Problem Statement

    You are provided with an N * M sized binary matrix 'MAT' where 'N' denotes the number of rows and 'M' denotes the number of columns. Your t...

  • Ans. 

    Find the maximum area of a submatrix with all 1's in a binary matrix.

    • Iterate over each cell in the matrix and calculate the maximum area of submatrix with that cell as the top-left corner.

    • Use dynamic programming to keep track of the maximum width of 1's ending at each cell.

    • Update the maximum area as you iterate through the matrix.

    • Return the maximum area found.

  • Answered by AI
  • Q2. 

    Binary Tree Maximum Path Sum Problem Statement

    Determine the maximum path sum for any path in a given binary tree with 'N' nodes.

    Note:

    • A 'path' is defined as any sequence of adjacent nodes connected...
  • Ans. 

    Find the maximum path sum in a binary tree with 'N' nodes.

    • Traverse the binary tree to find the maximum path sum.

    • Keep track of the maximum sum encountered so far.

    • Consider all possible paths in the tree to find the maximum sum.

    • Example: For input 1 2 3 4 -1 5 6 -1 -1 -1 -1 -1 -1, the maximum path sum is 16.

  • Answered by AI
  • Q3. 

    Minimum Number of Swaps to Sort an Array

    Find the minimum number of swaps required to sort a given array of distinct elements in ascending order.

    Input:

    T (number of test cases)
    For each test case:
    N (siz...
  • Ans. 

    Find the minimum number of swaps required to sort an array of distinct elements in ascending order.

    • Use graph theory to solve the problem by considering each element as a node and edges representing the swaps needed to sort the array

    • Implement a graph-based approach like cycle detection to find the minimum number of swaps required

    • Consider using an efficient sorting algorithm like bubble sort or selection sort to minimize...

  • Answered by AI
  • Q4. 

    Prefix to Infix Conversion

    Transform a string representing a valid Prefix expression, which may contain operators '+', '-', '*', '/', and uppercase letters, into its corresponding Infix expression.

    Examp...

  • Ans. 

    Convert a valid Prefix expression to its corresponding Infix expression.

    • Use a stack to store operands and operators while traversing the prefix expression from right to left.

    • Pop operands from the stack and form the infix expression by placing them between corresponding operators.

    • Handle the precedence of operators to ensure correct order of operations.

    • Ensure to handle parentheses to maintain the correct evaluation order...

  • Answered by AI

Interview Preparation Tips

Professional and academic backgroundI applied for the job as SDE - Intern in New DelhiEligibility criteriaAbove 8 cgpaHike interview preparation:Topics to prepare for the interview - Data stucture , pointer , tree ,Core java ,OopsTime required to prepare for the interview - 15 daysInterview preparation tips for other job seekers

Tip 1 : Atleast 1 project
Tip 2 : Practice data structures
 

Application resume tips for other job seekers

Tip 1 : Keep it short
Tip 2 : Don't put false information

Final outcome of the interviewRejected

Skills evaluated in this interview

I appeared for an interview in Jan 2021.

Round 1 - Coding Test 

(1 Question)

Round duration - 60 Minutes
Round difficulty - Easy

  • Q1. 

    Maximum Difference in Matrix

    Given an n x n matrix mat[n][n] of integers, find the maximum value of mat[c][d] - mat[a][b] for all possible indices where c > a and d > b.

    Input:

    The first line cont...
  • Ans. 

    Find the maximum difference between elements in a matrix with specific conditions.

    • Iterate through all possible pairs of indices (a, b) and (c, d) where c > a and d > b.

    • Calculate the difference between mat[c][d] and mat[a][b] for each pair.

    • Keep track of the maximum difference found so far.

    • Return the maximum difference as the final result.

  • Answered by AI
Round 2 - HR 

Round duration - 20 Minutes
Round difficulty - Easy

Interview Preparation Tips

Professional and academic backgroundI completed Computer Science Engineering from Lokmanya Tilak College of Engineering. Eligibility criteria6.75+ CGPAHike interview preparation:Topics to prepare for the interview - Data Structures, OOPS, DBMS, OOPs, Algorithms, DP, GreedyTime required to prepare for the interview - 2 MonthsInterview preparation tips for other job seekers

Tip 1 : Try solving Love Babbar 450 Prog questions
Tip 2 : Have a good resume
Tip 3 : Do learn some extra technologies eg. ML/AI

Application resume tips for other job seekers

Tip 1 : Do not lie at all
Tip 2 : Have some projects listed

Final outcome of the interviewRejected

Skills evaluated in this interview

Top trending discussions

View All
Interview Tips & Stories
1w (edited)
a team lead
Why are women still asked such personal questions in interview?
I recently went for an interview… and honestly, m still trying to process what just happened. Instead of being asked about my skills, experience, or how I could add value to the company… the questions took a totally unexpected turn. The interviewer started asking things like When are you getting married? Are you engaged? And m sure, if I had said I was married, the next question would’ve been How long have you been married? What does my personal life have to do with the job m applying for? This is where I felt the gender discrimination hit hard. These types of questions are so casually thrown at women during interviews but are they ever asked to men? No one asks male candidates if they’re planning a wedding or how old their kids are. So why is it okay to ask women? Can we please stop normalising this kind of behaviour in interviews? Our careers shouldn’t be judged by our relationship status. Period.
Got a question about Hike?
Ask anonymously on communities.

Interview questions from similar companies

Interview experience
3
Average
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Not Selected

I applied via Campus Placement and was interviewed in Jun 2024. There were 2 interview rounds.

Round 1 - Coding Test 

It was ok. I was not able to solve all the questions.

Round 2 - Technical 

(2 Questions)

  • Q1. Remove the last element from a linkedlist
  • Ans. 

    To remove the last element from a linked list, iterate to the second last node and update its next pointer to null.

    • Iterate through the linked list to find the second last node

    • Update the next pointer of the second last node to null

  • Answered by AI
  • Q2. Some basic questions on oops dbms and os

Skills evaluated in this interview

Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Not Selected

I applied via Campus Placement and was interviewed in Apr 2024. There were 3 interview rounds.

Round 1 - Coding Test 

Medium level coding questions on hackerrank ,1:30hr, topic- Array , DP , Matrix , Binary Search

Round 2 - Technical 

(1 Question)

  • Q1. Was Asked to Implement Hashmap and Question on OOPS and Dbms , SQL and Indexing
Round 3 - Technical 

(2 Questions)

  • Q1. Brief Introduction
  • Q2. Rotten Oranges and basics of bfs and DFS
Interview experience
5
Excellent
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Technical 

(1 Question)

  • Q1. DSA Questions on ant topic
Round 2 - Coding Test 

Graph, DP questions of hard level

Are these interview questions helpful?
Interview experience
4
Good
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Not Selected

I applied via Campus Placement and was interviewed in Aug 2024. There were 2 interview rounds.

Round 1 - Aptitude Test 

Included questions on mathematical reasoning, OS, DBMS and two coding questions

Round 2 - Technical 

(2 Questions)

  • Q1. Differences between RAM, HDD and SSD.
  • Ans. 

    RAM is volatile memory for temporary storage, HDD is non-volatile storage for long-term data, and SSD is a faster non-volatile storage.

    • RAM is volatile memory that stores data temporarily while the computer is on.

    • HDD is a non-volatile storage device that uses spinning disks to store data long-term.

    • SSD is a faster non-volatile storage device that uses flash memory for quicker access to data.

    • RAM is faster but more expensi...

  • Answered by AI
  • Q2. Given a grid with multiple products and starting from top left, how to reach bottom right collecting max number of products, and moving only right or down.

Skills evaluated in this interview

Interview experience
4
Good
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Coding Test 

1. Coin change
2. Valid Parenthesis
3. Bipartite graph question

Round 2 - Technical 

(1 Question)

  • Q1. Resume based. Find duplicate. Valid Parenthesis. Generate Random id Find max no of random id can be generated
  • Ans. 

    The question involves finding duplicates in an array, validating parentheses, generating random IDs, and determining the maximum number of random IDs that can be generated.

    • To find duplicates in an array, you can use a hash set to store unique elements and check for duplicates as you iterate through the array.

    • To validate parentheses, you can use a stack data structure to keep track of opening and closing parentheses.

    • To ...

  • Answered by AI
Round 3 - Technical 

(1 Question)

  • Q1. Core questions. LRU cache. Validate invalid BST
Round 4 - Technical 

(1 Question)

  • Q1. DP problem which I was unable to solve so rejected.

Skills evaluated in this interview

Interview experience
3
Average
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Selected Selected

I applied via Campus Placement and was interviewed before Oct 2022. There were 5 interview rounds.

Round 1 - Resume Shortlist 
Pro Tip by AmbitionBox:
Keep your resume crisp and to the point. A recruiter looks at your resume for an average of 6 seconds, make sure to leave the best impression.
View all tips
Round 2 - Aptitude Test 

50 simple quesrions to be done in 15 minutes.

Round 3 - Coding Test 

2 coding question intermediate level and mcq on sql and os

Round 4 - Technical 

(2 Questions)

  • Q1. Number thoery question
  • Q2. Graph snake and ladder
Round 5 - HR 

(1 Question)

  • Q1. Simple puzzles and question around projects

Interview Preparation Tips

Interview preparation tips for other job seekers - Prepare the fundamentals well. And DSA is important.

Tell us how to improve this page.

Senior Product Analyst
20 salaries
unlock blur

₹23 L/yr - ₹36 L/yr

Senior Software Engineer
12 salaries
unlock blur

₹21.2 L/yr - ₹65 L/yr

Associate Manager Marketing
11 salaries
unlock blur

₹13.5 L/yr - ₹15 L/yr

Product Manager
11 salaries
unlock blur

₹23.2 L/yr - ₹40 L/yr

Senior Software Engineer 2
10 salaries
unlock blur

₹55 L/yr - ₹90 L/yr

Explore more salaries
Compare Hike with

JoulestoWatts Business Solutions

3.1
Compare

DotPe

3.1
Compare

Thoughtsol Infotech

4.6
Compare

11:11 Systems

3.6
Compare
write
Share an Interview