42Gears Mobility Systems
10+ Preethi English Medium School Interview Questions and Answers
Q1. Expression Equality Checker
Given two strings representing expressions in variables, determine if they are equivalent. Return 'YES' if the expressions are identical and 'NO' if they are different. Each expressi...read more
Q2. Longest Increasing Subsequence Problem Statement
Given an array of integers with 'N' elements, determine the length of the longest subsequence where each element is greater than the previous element. This subse...read more
Q3. Cycle Detection in a Singly Linked List
Determine if a given singly linked list of integers forms a cycle or not.
A cycle in a linked list occurs when a node's next
points back to a previous node in the list. T...read more
Q4. Matrix Element Cube Sum Problem
For a given M x N sized 2D array 'MATRIX', find and return the value of (i * i + j * j) for elements where the sum of the cubes of its digits equals the element itself. Here, 'i'...read more
Q5. Convert Binary Tree to Mirror Tree
Convert a given binary tree into its mirror tree, where the left and right children of all non-leaf nodes are interchanged.
Input:
An integer ‘T’ denoting the number of test c...read more
Q6. Finding 3rd Largest Number in an Array without using Sort
Find 3rd largest number in array without sorting
Iterate through array to find largest, 2nd largest, and 3rd largest numbers
Keep track of these numbers as you iterate
Return the 3rd largest number found
Q7. Array List Implementation in Stack for Push and pop
Array List can be implemented in a stack by using an array and keeping track of the top element.
Create an array to store the elements of the stack.
Keep track of the top element using a variable.
For push operation, add the element to the top of the stack and increment the top index.
For pop operation, remove the top element and decrement the top index.
Q8. 1. How Hands on technologies even now ? can you work and troubleshoot issues individually ? 2. Management Approach & Leadership skills demonstration to Org Competencies ? 3. Current Technology vs Skills vs Gap'...
read moreI am highly hands-on with technologies, possess strong leadership skills, and have a customer-centric approach to product development.
I am proficient in troubleshooting issues individually and staying up-to-date with current technologies.
I have demonstrated strong management and leadership skills by driving big initiatives and focusing on customer-based product development.
I am aware of any skills gaps and continuously work on upskilling myself to bridge those gaps.
I prioriti...read more
Q9. Finding the min number of Swap in Sorting of Array
To find the minimum number of swaps needed to sort an array
Use graph theory to find cycles in the array
Count the number of swaps needed to fix each cycle
Add up the swaps needed for all cycles to get the total minimum swaps
Q10. Differences in final,Finally,Finalize
final, finally, and finalize are related terms in programming but have different meanings and usage
final is a keyword in Java used to restrict inheritance, method overriding, and variable reassignment
finally is a block of code in exception handling that always executes, regardless of whether an exception is thrown
finalize is a method in Java used for cleanup operations before an object is garbage collected
Q11. Two Sum in Coding
Find two numbers in an array that add up to a specific target value.
Use a hashmap to store the difference between the target value and each element in the array.
Iterate through the array and check if the current element's complement exists in the hashmap.
Return the indices of the two numbers that add up to the target value.
Interview Process at Preethi English Medium School
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month