Add office photos
Engaged Employer

Snapdeal

3.8
based on 638 Reviews
Filter interviews by

30+ Reliable Software Systems Private Limited Interview Questions and Answers

Updated 5 Feb 2024
Popular Designations

Q1. Closest Pair of Points Problem Statement

Given an array containing 'N' points in a plane, your task is to find the distance between the closest pair of points.

Explanation:

The distance between two points, (x1,...read more

Add your answer

Q2. Subtree Check in Binary Trees

You are given two binary trees, T and S. Your task is to determine whether tree S is a subtree of tree T, meaning S must match the structure and node values of some subtree in T.

I...read more

Add your answer

Q3. Largest Rectangular Area In A Histogram

Given an array HEIGHTS of length N, where each element represents the height of a histogram bar and the width of each bar is 1, determine the area of the largest rectangl...read more

Add your answer

Q4. Linked List Cycle Detection

Determine if a given singly linked list of integers forms a cycle.

Explanation:

A cycle in a linked list occurs when a node's next reference points back to a previous node in the lis...read more

Add your answer
Discover Reliable Software Systems Private Limited interview dos and don'ts from real experiences

Q5. Inorder Traversal of Binary Tree Without Recursion

Given a Binary Tree consisting of 'N' nodes with integer values, your task is to perform an In-Order traversal of the tree without using recursion.

Input:

The ...read more
Add your answer

Q6. Search in a Row-wise and Column-wise Sorted Matrix Problem Statement

You are given an N * N matrix of integers where each row and each column is sorted in increasing order. Your task is to find the position of ...read more

Add your answer
Are these interview questions helpful?

Q7. LCA of Binary Tree Problem Statement

You are given a binary tree consisting of distinct integers and two nodes, X and Y. Your task is to find and return the Lowest Common Ancestor (LCA) of these two nodes.

The ...read more

Add your answer

Q8. Find Pair with Given Sum in BST

You are provided with a Binary Search Tree (BST) and a target value 'K'. Your task is to determine if there exist two unique elements in the BST such that their sum equals the ta...read more

Add your answer
Share interview questions and help millions of jobseekers 🌟

Q9. Reverse a Linked List Problem Statement

You are given a Singly Linked List of integers. Your task is to reverse the Linked List by changing the links between nodes.

Input:

The first line of input contains a sin...read more
Add your answer

Q10. Count Unique Rectangles in Grid

Given a grid with 'M' rows and 'N' columns, calculate the total number of unique rectangles that can be formed within the grid using its rows and columns.

Input:

The first line c...read more
Add your answer

Q11. Nth Fibonacci Problem Statement

Calculate the Nth term of the Fibonacci series, denoted as F(n), using the formula: F(n) = F(n-1) + F(n-2) where F(1) = 1 and F(2) = 1.

Input:

The first line of each test case co...read more
Add your answer

Q12. Find All Anagrams in a String

Given a string STR and a non-empty string PTR, your task is to identify all starting indices of PTR’s anagrams in STR.

Explanation:

An anagram of a string is another string that co...read more

Add your answer

Q13. Zig Zag Tree Traversal Problem Statement

Given a binary tree, compute the zigzag level order traversal of the nodes' values. In a zigzag traversal, start at the root node and traverse from left to right at the ...read more

Add your answer

Q14. You have a deck of 10 cards.You take one card out and put it on table and put next card in the end of deck.You repeat this sequence till all cards are on the table.Sequence formed on the table is 1,2,3,4,5…10....

read more
Ans.

Reconstruct original sequence of cards given a specific sequence of cards placed on table.

  • The last card placed on the table must be 10.

  • The second last card placed on the table must be 5 or 6.

  • The first card placed on the table must be either 1 or 2.

  • Use trial and error method to reconstruct the original sequence.

Add your answer

Q15. There is a file which contains ip addresses and corresponding url. Example 192.168.1.15 www.abc.com 10.255.255.40 ----- You have to return the subnet mask of the ip and the url after “www.” Output 192.168.1 abc...

read more
Ans.

Java function to return subnet mask of IP and URL after www.

  • Read the file and store IP addresses and URLs in separate arrays

  • Use regex to extract subnet mask from IP address

  • Use substring to extract URL after www.

  • Return subnet mask and URL as separate strings

Add your answer

Q16. How would you design DBMS for Snapdeal’s website’s shoe section. Now if you want to further break it into Sports and Casual Shoe would you break the DB into two or add another entity?

Ans.

For Snapdeal's shoe section, I would design a DBMS with separate entities for Sports and Casual Shoes.

  • Create a main entity for shoes with attributes like brand, size, color, etc.

  • Create separate entities for Sports and Casual Shoes with attributes specific to each category.

  • Link the Sports and Casual Shoe entities to the main Shoe entity using a foreign key.

  • Use indexing and normalization techniques to optimize performance and reduce redundancy.

  • Consider implementing a search fea...read more

Add your answer

Q17. You are given two ropes.Each rope takes exactly 1 hour to burn. How will you measure period of 45 minutes

Ans.

Burn one rope from both ends and the other rope from one end.

  • Light one rope from both ends and the other rope from one end.

  • When the first rope burns completely, 30 minutes have passed.

  • Then, immediately light the other end of the second rope.

  • When the second rope burns completely, 15 more minutes have passed.

  • Total time elapsed is 45 minutes.

Add your answer

Q18. There are two sorted arrays. First one is of size m+n containing only ‘first’ m elements. Another one is of size n and contains n elements. Merge these two arrays into the first array of size m+n such that the...

read more
Ans.

Merge two sorted arrays into one sorted array of larger size

  • Create a new array of size m+n

  • Compare the last elements of both arrays and insert the larger one at the end of the new array

  • Repeat until all elements are merged

  • If any elements are left in the smaller array, insert them at the beginning of the new array

  • Time complexity: O(m+n)

  • Example: arr1=[1,3,5,7,0,0,0], arr2=[2,4,6], output=[1,2,3,4,5,6,7]

Add your answer

Q19. Variation of -----/ Given a dictionary of words and a number n. Find count of all words in dictionary that can be formed by given number n

Ans.

The question asks to find the count of words in a dictionary that can be formed by a given number.

  • Iterate through each word in the dictionary

  • Check if the characters in the word can be formed using the given number

  • Increment the count if the word can be formed

Add your answer

Q20. DNS – Domain name servers : what are they , how do they operate?

Ans.

DNS servers translate domain names into IP addresses to enable communication between devices on the internet.

  • DNS servers act as a phone book for the internet, translating domain names into IP addresses.

  • When a user types a domain name into their browser, the browser sends a request to a DNS server to resolve the domain name into an IP address.

  • DNS servers operate in a hierarchical system, with root servers at the top, followed by top-level domain servers, and then authoritative...read more

Add your answer

Q21. Lowest Common Ancestor of two nodes in binary tree.I wrote code for this.Then interviewer drew a tree and asked to print stacktrace on it

Ans.

Finding lowest common ancestor of two nodes in binary tree

  • Traverse the tree from root to both nodes and store the paths in separate arrays

  • Compare the paths to find the last common node

  • Return the last common node as the lowest common ancestor

  • Use recursion to traverse the tree efficiently

Add your answer

Q22. Find LCM of all numbers from 1 to n. Give an algorithm, then correctly estimate the time complexity

Ans.

Algorithm to find LCM of all numbers from 1 to n and its time complexity

  • Find prime factors of all numbers from 1 to n

  • For each prime factor, find the highest power it appears in any number from 1 to n

  • Multiply all prime factors raised to their highest power to get LCM

  • Time complexity: O(n*log(log(n)))

Add your answer
Q23. How can you measure 45 minutes using two identical wires?
Add your answer

Q24. There is four digit number in aabb form and it is a perfect square.Find out the number

Ans.

The number is 7744.

  • The number must end in 00 or 44.

  • The square root of the number must be a whole number.

  • The only possible number is 7744.

Add your answer

Q25. A linked list contains loop.Find the length of non looped linked list

Ans.

To find the length of non-looped linked list, we need to traverse the list and count the number of nodes.

  • Traverse the linked list using a pointer and count the number of nodes until the end of the list is reached.

  • If a loop is encountered, break out of the loop and continue counting until the end of the list.

  • Return the count as the length of the non-looped linked list.

Add your answer

Q26. A simple program to check whether a number is palindrome or not

Ans.

A program to check if a number is a palindrome or not.

  • Convert the number to a string

  • Reverse the string

  • Compare the original and reversed string

  • If they are the same, the number is a palindrome

Add your answer

Q27. What are inner join and outer join in sql

Ans.

Inner join returns only the matching rows between two tables, while outer join returns all rows from one table and matching rows from the other.

  • Inner join combines rows from two tables based on a matching column.

  • Outer join returns all rows from one table and matching rows from the other.

  • Left outer join returns all rows from the left table and matching rows from the right table.

  • Right outer join returns all rows from the right table and matching rows from the left table.

  • Full ou...read more

Add your answer

Q28. Two linked list are merging at a point.Find merging point

Ans.

To find the merging point of two linked lists

  • Traverse both linked lists and find their lengths

  • Move the pointer of the longer list by the difference in lengths

  • Traverse both lists simultaneously until they meet at the merging point

Add your answer
Q29. What is an outer join?
Add your answer
Q30. What is an Inner Join?
Add your answer

Q31. SQL vs NoSQL. Why NoSQL

Ans.

NoSQL databases are flexible, scalable, and can handle large amounts of unstructured data.

  • NoSQL databases are schema-less, allowing for easy and flexible data modeling.

  • They can handle large amounts of unstructured data, making them suitable for big data applications.

  • NoSQL databases are highly scalable and can easily handle high traffic and large user bases.

  • They provide horizontal scalability by distributing data across multiple servers.

  • NoSQL databases are often used in real-t...read more

Add your answer

Q32. Number of rectangles in MxN matrix

Ans.

The number of rectangles in an MxN matrix can be calculated using a formula.

  • The formula is (M * (M + 1) * N * (N + 1)) / 4

  • The matrix can be divided into smaller sub-matrices to count the rectangles

  • The number of rectangles can also be calculated by counting all possible pairs of rows and columns

Add your answer

Q33. Find square root of a number

Ans.

To find square root of a number, use Math.sqrt() function in JavaScript.

  • Use Math.sqrt() function in JavaScript to find square root of a number.

  • For example, Math.sqrt(16) will return 4.

  • If the number is negative, Math.sqrt() will return NaN.

Add your answer

Q34. Reverse linked list without recursion

Ans.

Reverse a linked list iteratively

  • Create three pointers: prev, curr, and next

  • Initialize prev to null and curr to head

  • Loop through the list and set next to curr's next node

  • Set curr's next node to prev

  • Move prev and curr one step forward

  • Return prev as the new head

Add your answer
Q35. You have three jars, each mislabeled. One jar contains only apples, another contains only oranges, and the third contains both apples and oranges. You can pick one fruit from one jar to determine its contents. ...read more
Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos

Interview Process at Reliable Software Systems Private Limited

based on 1 interviews
3 Interview rounds
Aptitude Test Round
Technical Round
HR Round
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Software Developer Interview Questions from Similar Companies

4.1
 • 50 Interview Questions
3.9
 • 27 Interview Questions
4.2
 • 26 Interview Questions
3.6
 • 18 Interview Questions
3.8
 • 12 Interview Questions
3.5
 • 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