Add office photos
Employer?
Claim Account for FREE

Josh Technology Group

3.0
based on 74 Reviews
Filter interviews by

10+ Systems Plus Interview Questions and Answers

Updated 5 Feb 2024
Popular Designations
Q1. Validate Binary Tree Nodes

You are given ‘N’ binary tree nodes numbered from 0 to N - 1 where node ‘i’ has two children LEFT_CHILD[i] and RIGHT_CODE[i]. Return ‘True’ if and only if all the given nodes form exac...read more

Ans.

The task is to determine if the given binary tree nodes form exactly one valid binary tree.

  • Check if there is only one root node (a node with no parent)

  • Check if each node has at most one parent

  • Check if there are no cycles in the tree

  • Check if all nodes are connected and form a single tree

View 2 more answers
Q2. Balanced Binary Tree

You are given an integer 'H'. Your task is to count and print the maximum number of balanced binary trees possible with height 'H'.

The balanced binary tree is one in which, for every node, ...read more

Ans.

The maximum number of balanced binary trees possible with a given height is to be counted and printed.

  • A balanced binary tree is one in which the difference between the left and right subtree heights is less than or equal to 1.

  • The number of balanced binary trees can be calculated using dynamic programming.

  • The number of balanced binary trees with height 'H' can be obtained by summing the product of the number of balanced binary trees for each possible left and right subtree hei...read more

View 3 more answers
Q3. Sort an array in wave form

You have been given an unsorted array ‘ARR’.

Your task is to sort the array in such a way that the array looks like a wave array.

Example:
If the given sequence ‘ARR’ has ‘N’ elements ...read more
Ans.

The task is to sort an array in a wave form, where each element is greater than or equal to its adjacent elements.

  • Iterate through the array and swap adjacent elements if they do not follow the wave pattern

  • Start from the second element and compare it with the previous element, swap if necessary

  • Continue this process until the end of the array

  • Repeat the process for the remaining elements

  • Return the sorted wave array

View 4 more answers
Q4. Pair Sum in BST.

You are given a Binary Search Tree (BST) and a target value ‘K’. Your task is to check if there exist two unique elements in the given BST such that their sum is equal to the given target ‘K’.

A...read more

Ans.

The task is to check if there exist two unique elements in the given BST such that their sum is equal to the given target 'K'.

  • Traverse the BST in-order and store the elements in a sorted array

  • Use two pointers, one at the beginning and one at the end of the array

  • Check if the sum of the elements at the two pointers is equal to the target 'K'

  • If the sum is less than 'K', move the left pointer to the right

  • If the sum is greater than 'K', move the right pointer to the left

  • Repeat the...read more

View 5 more answers
Discover Systems Plus interview dos and don'ts from real experiences
Q5. Maximum Sum BST

You are given a Binary Tree ‘root’. The given Binary Tree may or may not be a Binary Search Tree(BST) itself. Your task is to find the maximum sum of node values of any subtree that is a Binary S...read more

Ans.

The task is to find the maximum sum of node values of any subtree that is a Binary Search Tree(BST).

  • Traverse the binary tree in a bottom-up manner

  • For each node, check if it forms a BST and calculate the sum of its subtree

  • Keep track of the maximum sum encountered so far

  • Return the maximum sum

View 3 more answers
Q6. K Largest Element

You are given an unsorted array containing ‘N’ integers. You need to find ‘K’ largest elements from the given array. Also, you need to return the elements in non-decreasing order.

Input Format...read more
View 5 more answers
Are these interview questions helpful?
Q7. Print Nodes at Distance K From a Given Node

You are given an arbitrary binary tree, a node of the tree, and an integer 'K'. You need to find all such nodes which have a distance K from the given node and return ...read more

Ans.

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

  • Implement a function that takes the binary tree, target node, and distance K as input.

  • Use a depth-first search (DFS) algorithm to traverse the tree and find the nodes at distance K.

  • Keep track of the distance from the current node to the target node while traversing.

  • When the distance equals K, add the current node to the result list.

  • Continue the DFS traversal to explore other nodes in the...read more

View 3 more answers
Q8. 0 1 Knapsack

A thief is robbing a store and can carry a maximal weight of W into his knapsack. There are N items and the ith item weighs wi and is of value vi. Considering the constraints of the maximum weight t...read more

View 2 more answers
Share interview questions and help millions of jobseekers 🌟
Q9. Longest Palindromic Substring

You are given a string ('STR') of length 'N'. Find the longest palindromic substring. If there is more than one palindromic substring with the maximum length, return the one with th...read more

View 5 more answers
Q10. Longest Common Subsequence

You have been given two Strings “STR1” and “STR2” of characters. Your task is to find the length of the longest common subsequence.

A String ‘a’ is a subsequence of a String ‘b’ if ‘a’...read more

View 5 more answers
Q11. Size of Largest BST in Binary Tree

You are given a binary tree with 'N' nodes. Your task is to return the size of the largest subtree of the binary tree which is also a BST.

A binary search tree (BST) is a binar...read more

View 3 more answers
Q12. Matrix Chain Multiplication

You are given ‘N’ 2-D matrices and an array/list “ARR” of length ‘N + 1’ where the first ‘N’ integers denote the number of rows in the Matrices and the last element denotes the number...read more

View 3 more answers
Q13. Rotate Linked List

You have been given a Linked List having ‘N’ nodes and an integer ‘K’. You have to rotate the Linked List by ‘K’ positions in a clockwise direction.

Example :

 Given Linked List : 1 2 3 4 -1 a...read more
View 3 more answers
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos

Interview Process at Systems Plus

based on 7 interviews in the last 1 year
2 Interview rounds
Aptitude Test Round
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.7
 • 33 Interview Questions
4.4
 • 25 Interview Questions
3.6
 • 15 Interview Questions
3.0
 • 14 Interview Questions
3.9
 • 14 Interview Questions
3.8
 • 12 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
Get AmbitionBox app

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