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
2w
toobluntforu
·
works at
Cvent
Can speak English, can’t deliver in interviews
I feel like I can't speak fluently during interviews. I do know english well and use it daily to communicate, but the moment I'm in an interview, I just get stuck. since it's not my first language, I struggle to express what I actually feel. I know the answer in my head, but I just can’t deliver it properly at that moment. Please guide me
Got a question about Hike?
Ask anonymously on communities.

Interview questions from similar companies

I applied via Campus Placement and was interviewed before Oct 2021. There were 2 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 - One-on-one 

(3 Questions)

  • Q1. DS Algo, Backend and DB
  • Q2. Stack(DS) question and DB based questions
  • Q3. Scaling (Horizontal, Vertical) with use cases
  • Ans. 

    Scaling refers to increasing capacity of a system. Horizontal scaling adds more machines, while vertical scaling adds more resources to a machine.

    • Horizontal scaling involves adding more machines to a system to increase capacity

    • Vertical scaling involves adding more resources to a machine to increase capacity

    • Use cases for horizontal scaling include handling increased traffic or adding redundancy

    • Use cases for vertical sca...

  • Answered by AI

Interview Preparation Tips

Topics to prepare for Junglee Games Software Developer interview:
  • Backend
  • Data Structures
  • Database
Interview preparation tips for other job seekers - Keep your DS concepts clear and be clear on your answers
Interview experience
4
Good
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Selected Selected

I applied via Campus Placement and was interviewed before Jul 2023. There were 4 interview rounds.

Round 1 - Aptitude Test 

45 questions time - 30min

Round 2 - Coding Test 

2 Medium Leetcode questions

Round 3 - Technical 

(2 Questions)

  • Q1. Print Factorial of large numbers(like 100)
  • Ans. 

    Use a big integer library to calculate factorial of large numbers like 100.

    • Use a big integer library like BigInteger in Java or BigInt in Python.

    • Implement a function to calculate factorial recursively or iteratively.

    • Handle large numbers by storing them in arrays or strings.

  • Answered by AI
  • Q2. Group Anagrams(leetcode medium)
  • Ans. 

    Group anagrams from a list of strings by sorting or using a frequency count.

    • Anagrams are words that can be rearranged to form each other, e.g., 'eat' and 'tea'.

    • Use a hashmap to group words by their sorted character string.

    • Example: Input: ['eat', 'tea', 'tan', 'ate', 'nat', 'bat'] Output: [['eat', 'tea', 'ate'], ['tan', 'nat'], ['bat']].

    • Alternatively, use a frequency count of characters to identify anagrams.

  • Answered by AI
Round 4 - Technical 

(1 Question)

  • Q1. Design Ludo game and code with basics functionailty(test cases)
  • Ans. 

    Design a Ludo game with basic functionalities like player movement, dice rolling, and win condition checks.

    • Players: 2-4 players can participate in the game.

    • Board: A square board with a cross-shaped path for each player.

    • Dice: A single die to determine the number of spaces a player moves.

    • Movement: Players move their tokens based on the dice roll, starting from the base.

    • Winning: The first player to get all their tokens to...

  • Answered by AI

Skills evaluated in this interview

Interview experience
5
Excellent
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Coding Test 

It was a great round with medium - hard level leetcode questions from graph and binary search.

Round 2 - Technical 

(2 Questions)

  • Q1. N Queens problem standard
  • Q2. Some probability related question

Interview Preparation Tips

Interview preparation tips for other job seekers - Tip 1: Try thinking out loud
Tip 2: Look over the previous questions asked

Skills evaluated in this interview

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

I applied via Job Portal and was interviewed in Apr 2024. There were 3 interview rounds.

Round 1 - Aptitude Test 

Contained aptitude questions followed by two coding questions.

Round 2 - Coding Test 

Contained Two coding questions

Round 3 - Group Discussion 

Contained project to find bugs

I applied via Campus Placement and was interviewed in Jul 2022. There were 2 interview rounds.

Round 1 - Aptitude Test 

50 question in 12 minutes

Round 2 - Coding Test 

2 question and cs core subjects mcq

Interview Preparation Tips

Interview preparation tips for other job seekers - Prepare well for aptitude and for coding round as well
Interview experience
4
Good
Difficulty level
-
Process Duration
-
Result
-
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 

Aptitude test on theory topics and general aptitude

Round 3 - One-on-one 

(1 Question)

  • Q1. Binary search question
Round 4 - One-on-one 

(1 Question)

  • Q1. Design in memory database
  • Ans. 

    In-memory databases store data in main memory for faster access and retrieval.

    • Use data structures like hash tables or B-trees for efficient storage and retrieval of data

    • Implement caching mechanisms to reduce latency and improve performance

    • Consider data persistence strategies like periodic snapshots or write-ahead logging

    • Optimize memory usage by compressing data or using columnar storage formats

  • Answered by AI

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
10 salaries
unlock blur

₹18 L/yr - ₹52 L/yr

Associate Product Manager
10 salaries
unlock blur

₹11 L/yr - ₹26.8 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.7
Compare
write
Share an Interview