Premium Employer

Info Edge

3.9
based on 1.9k Reviews
Filter interviews by

Brandust Interview Questions and Answers

Updated 18 Sep 2024
Popular Designations

Q1. Rearrange Array Elements Problem Statement

Given an array A containing 'N' integers and an integer m, rearrange the elements of the array such that the differences between the array elements and m are sorted in...read more

Add your answer

Q2. Anagram Pairs Problem Statement

Determine if two given strings are anagram pairs. Two strings are anagrams if the letters of one can be rearranged to form the other.

Input:

The input consists of a single line c...read more
Add your answer

Q3. Print Nodes at Distance K from a Given Node

Given an arbitrary binary tree, a node of the tree, and an integer 'K', find all nodes that are at a distance K from the specified node, and return a list of these no...read more

Ans.

The task is to find all nodes in a binary tree that are at a distance K from a given node.

  • Traverse the binary tree to find the given node

  • From the given node, perform a depth-first search to find all nodes at distance K

  • Use a list to store the values of the nodes at distance K

  • Return the list of values in any order

Add your answer

Q4. Triangle of Numbers Pattern

Ninja is tasked with printing a triangle pattern based on a given number 'N' for any test case.

Example:

Input:
N = 4
Output:
 1
232
34545
4567654

Explanation:

The pattern comprises n...read more

Add your answer
Discover Brandust interview dos and don'ts from real experiences
Q5. What is the difference between a web server and an application server?
Add your answer
Q6. How does the internet work?
Add your answer
Q7. Write a SQL query to find the nth highest salary.
Add your answer
Q8. Can you explain the concepts of Object-Oriented Programming (OOP)?
Add your answer

Q9. Insert node in binary search tree

Ans.

To insert a node in a binary search tree, compare the value of the node to be inserted with the current node and traverse left or right accordingly.

  • Start at the root node and compare the value of the node to be inserted with the current node.

  • If the value is less than the current node, move to the left child node. If it is greater, move to the right child node.

  • Repeat this process until reaching a leaf node, then insert the new node as the left or right child of the leaf node.

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos

Interview Process at Brandust

based on 6 interviews
1 Interview rounds
Coding Test Round
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Software Developer Interview Questions from Similar Companies

3.5
 • 60 Interview Questions
3.6
 • 18 Interview Questions
4.0
 • 14 Interview Questions
4.0
 • 12 Interview Questions
3.6
 • 11 Interview Questions
4.2
 • 10 Interview Questions
View all
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
70 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter