RUBRIK INDIA
10+ iBhejo Interview Questions and Answers
Q1. XOR Query Problem Statement
Assume you initially have an empty array called ARR
. You are required to return the updated array after executing Q
number of queries on this array.
There are two types of queries to...read more
Implement a function to update an array based on XOR queries.
Create an empty array to store the elements.
Iterate through each query and update the array accordingly.
Use bitwise XOR operation to update the elements.
Ensure to handle both types of queries - insert and XOR.
Return the updated array after all queries are processed.
Q2. Minimum Removals Problem Statement
Given an integer array ARR
of size N
and an integer K
, determine the minimum number of elements that need to be removed so that the difference between the maximum and minimum ...read more
Find the minimum number of elements to remove from an array to satisfy a given condition.
Calculate the initial difference between the maximum and minimum elements in the array.
Iterate through the array and remove elements to minimize the difference.
Return the count of elements removed as the answer.
Q3. Minimum Number of Stabs to Kill the King
You are given the initial health of a king represented by an integer N
. Your task is to determine the minimum number of stabs required to reduce the king's health to zer...read more
Calculate the minimum number of stabs required to kill the king by reducing his health to zero.
Iterate through each test case and calculate the minimum number of stabs required based on the given operations.
For each test case, keep reducing the king's health using the first or second type of stab until it reaches zero.
Consider the constraints provided to optimize the solution and handle edge cases.
Example: For input 10, the minimum number of stabs required is 4 (10 -> 9 -> 3 ...read more
Q4. Minimum Time Problem Statement
In a city with ‘N’ junctions and ‘M’ bi-directional roads, each junction is connected to other junctions with specified travel times. No road connects a junction to itself, and on...read more
The problem involves finding the minimum time to travel from a source junction to a destination junction in a city with specified travel times and green light periods.
Input consists of the number of test cases, number of junctions and roads, green light periods, road connections with travel times, and source/destination junctions.
Output should be the minimum time needed from source to destination, or -1 if destination is unreachable.
Consider constraints such as the number of ...read more
Q5. Scramble String Problem Statement
You are given an integer 'N' and two strings S
and R
, each having the size N
. Determine if you can scramble string S
to obtain string R
using specified operations.
Your task is...read more
Given two strings of the same length, determine if one can be scrambled to obtain the other using specified operations.
Check if the two strings are equal, if so return true.
Check if the characters in both strings are the same, if not return false.
Try all possible ways of splitting and scrambling the first string to match the second string.
Q6. What is the port used for HTTP?
Port 80 is used for HTTP, which is the protocol used for transmitting web pages over the internet.
Port 80 is the default port for HTTP
HTTP stands for Hypertext Transfer Protocol
Other common ports include 8080 for alternative HTTP port
Q7. Explain OSI model and working of each layer?
The OSI model is a conceptual framework that standardizes the functions of a telecommunication or computing system into seven layers.
Layer 1 (Physical): Deals with physical connections and data transmission. Example: Ethernet cables.
Layer 2 (Data Link): Manages data transfer between devices on the same network. Example: MAC addresses.
Layer 3 (Network): Handles routing and forwarding of data packets. Example: IP addresses.
Layer 4 (Transport): Ensures reliable data transfer bet...read more
Q8. Boot process of linux
The Linux boot process involves several stages, including BIOS/UEFI, bootloader, kernel initialization, and user space initialization.
BIOS/UEFI performs hardware checks and loads bootloader
Bootloader (GRUB, LILO) loads kernel into memory
Kernel initializes hardware, mounts root filesystem, and starts user space processes
User space initialization includes starting system services and login prompt
Q9. Rhel6 vs rhel 7
RHEL 7 offers improved performance, security features, and support for newer hardware compared to RHEL 6.
RHEL 7 has better performance due to kernel improvements and optimized resource management.
RHEL 7 includes enhanced security features such as SELinux improvements and system-wide cryptographic policies.
RHEL 7 provides support for newer hardware and technologies, such as Docker containers and systemd.
RHEL 7 offers improved networking capabilities and better integration with...read more
Q10. How to deal Irate customer
Interview Process at iBhejo
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month