i
Oracle
Filter interviews by
Given an integer array ARR
of size N
, your task is to find the total number of inversions that exist in the array.
An inversion is defined for a pair of integers in the ...
Count the number of inversions in an integer array.
Iterate through the array and for each pair of elements, check if the conditions for inversion are met.
Use a nested loop to compare each pair of elements efficiently.
Keep a count of the inversions found and return the total count at the end.
Convert a given binary tree into its sum tree. In a sum tree, every node's value is replaced with the sum of its immediate children's values. Leaf nodes are set to 0. Finally, return the...
Convert a binary tree into a sum tree by replacing each node's value with the sum of its children's values. Return the preorder traversal of the sum tree.
Traverse the tree in a bottom-up manner to calculate the sum of children for each node.
Set leaf nodes to 0 and update non-leaf nodes with the sum of their children.
Return the preorder traversal of the modified tree.
Given an integer number num
, your task is to convert 'num' into its corresponding word representation.
The first line of input contains an integer ‘T’ denoting the number of...
Convert a given integer number into its corresponding word representation.
Implement a function that takes an integer as input and returns the word representation of the number in English lowercase letters.
Break down the number into its individual digits and convert each digit into its word form (e.g., 1 to 'one', 2 to 'two').
Combine the word forms of individual digits to form the word representation of the entire ...
You are given a graph with 'N' vertices numbered from '1' to 'N' and 'M' edges. Your task is to color this graph using two colors, such as blue and red, in a way that no two adjacent...
Given a graph with 'N' vertices and 'M' edges, determine if it can be colored using two colors without adjacent vertices sharing the same color.
Use graph coloring algorithm like BFS or DFS to check if it is possible to color the graph with two colors.
Check if any adjacent vertices have the same color. If yes, then it is not possible to color the graph as described.
If the graph has connected components, color each ...
What people are saying about Oracle
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 positio...
Given a sorted N * N matrix, find the position of a target integer 'X'.
Use binary search in each row to narrow down the search space.
Start from the top-right corner or bottom-left corner for efficient search.
Handle cases where 'X' is not found by returning {-1, -1}.
Given a string str
composed solely of the characters "{", "}", "(", ")", "[", and "]", determine whether the parentheses are balanced.
The first line contains a...
Check if given string of parentheses is balanced or not.
Use a stack to keep track of opening parentheses
Pop from stack when encountering a closing parenthesis
Return 'YES' if stack is empty at the end, 'NO' otherwise
You are provided with a square matrix of non-negative integers of size 'N x N'
. The task is to rotate this matrix by 90 degrees in an anti-clockwise directio...
Rotate a square matrix by 90 degrees anti-clockwise without using extra space.
Iterate through each layer of the matrix from outer to inner layers
Swap elements in groups of 4 to rotate the matrix in place
Handle odd-sized matrices separately by adjusting the loop boundaries
Determine the length of the largest subarray within a given array of 0s and 1s, such that the subarray contains an equal number of 0s and 1s.
Input begi...
Find the length of the largest subarray with equal number of 0s and 1s in a given array.
Iterate through the array and maintain a count of 0s and 1s encountered so far.
Store the count difference in a hashmap with the index as key.
If the same count difference is encountered again, the subarray between the two indices has equal 0s and 1s.
Return the length of the largest such subarray found.
I applied via Company Website and was interviewed in Oct 2024. There were 3 interview rounds.
It was a coding round interview along with interviewer via Virtual mode. I was given 2 coding questions on HackerRank for the interview:
1. one was an easy problem on counting minimum replacements.
2. "pat is an ordinary kid who works hard to be a great runner...." this was a challenging problem (which I managed to solve).
3. I was asked some basic Python questions, as the role was for a Python Developer.
Design a parking lot system to manage parking spaces, vehicles, and payment processing.
Define core classes: ParkingLot, ParkingSpace, Vehicle, Ticket, and Payment.
ParkingLot manages multiple ParkingSpaces and keeps track of available spots.
ParkingSpace can be of different types: Compact, Regular, and Handicapped.
Vehicle class holds information like license plate, size, and type.
Ticket class generates a unique ID for ea...
I would use a relational database like MySQL for the Parking lot as it provides structured data storage and supports complex queries.
Relational databases like MySQL offer structured data storage for parking lot information
Supports complex queries for managing parking lot data efficiently
Ability to handle large amounts of data and transactions
Provides data integrity and security features
Can easily integrate with other s...
Java is a popular programming language used for developing various applications. OOPs (Object-Oriented Programming) is a programming paradigm based on the concept of objects.
Java is a class-based, object-oriented programming language.
OOPs concepts include encapsulation, inheritance, polymorphism, and abstraction.
Encapsulation is the bundling of data and methods that operate on the data into a single unit.
Inheritance al...
Testing is the process of evaluating a software application to identify defects or bugs.
Types of testing include unit testing, integration testing, system testing, acceptance testing, and regression testing.
Unit testing involves testing individual components or modules of the software.
Integration testing checks if different modules work together correctly.
System testing evaluates the entire system's functionality.
Accep...
Locators in automation selenium are used to identify web elements on a webpage for testing purposes.
Locators include ID, class name, name, tag name, link text, partial link text, and xpath.
ID is the most efficient locator as it is unique for each element.
Xpath is powerful but can be slow and brittle if not used correctly.
Using CSS selectors can also be a good alternative to xpath.
It is important to choose the right loc...
I applied via Campus Placement and was interviewed in Sep 2024. There were 4 interview rounds.
1 coding questions and OS, CN and DBMS mcqs
I applied via Campus Placement
I applied via Campus Placement and was interviewed in Aug 2024. There was 1 interview round.
I applied via Campus Placement and was interviewed in Aug 2024. There were 2 interview rounds.
Mcqs+ 1 coding test. Solved all
Find the longest string in an array with no repeating characters.
Iterate through each string in the array
Use a set to keep track of characters seen so far
Update the longest string found without repeating characters
Generate all valid combinations of parentheses for a given number n
Use backtracking to generate all possible combinations of opening and closing parentheses
Keep track of the number of opening and closing parentheses used
Add opening parentheses if there are remaining to be used, and add closing parentheses if it won't create an invalid combination
I applied via Campus Placement and was interviewed in Aug 2024. There were 2 interview rounds.
2 coding question and 30 mcqs of cs fundamental and aptitude
The 'Count and Say' problem generates a sequence of strings based on counting consecutive digits.
The sequence starts with '1'.
Each subsequent term is generated by describing the previous term.
For example, '1' becomes '11' (one 1), '11' becomes '21' (two 1s), and '21' becomes '1211' (one 2, then one 1).
The nth term can be generated iteratively or recursively.
Remove duplicates from array of strings while maintaining original order.
Iterate through the array and use a Set to keep track of unique elements.
Add elements to a new array only if they are not already in the Set.
I applied via Campus Placement and was interviewed in Jun 2024. There were 2 interview rounds.
1 dsa question and 35 mcq question related ti apis,aptitude,cs core concepts
I applied via Company Website and was interviewed in Jun 2024. There were 3 interview rounds.
Coding is nothing but ask about the software language like python, java, etc.,
I will tell you about my experience working on a team project to develop a mobile app.
Collaborated with team members to brainstorm ideas and plan project milestones
Utilized programming languages such as Java and Swift to develop app features
Conducted testing and debugging to ensure app functionality and user experience
Received feedback from users and made necessary improvements to the app
I found the job through a job search website and applied online.
I was actively looking for software developer positions on job search websites.
I came across the job posting for this position and it matched my skills and experience.
I submitted my application online through the company's website.
I received a call for an interview after my application was reviewed.
You are hiring me because of my strong technical skills, experience, and passion for software development.
Strong technical skills in programming languages such as Java, Python, and C++
Proven experience in developing and implementing software solutions
Passion for staying updated with the latest technologies and trends in the industry
My strength lies in my problem-solving skills, attention to detail, and ability to work well in a team.
Strong problem-solving skills - I enjoy tackling complex issues and finding creative solutions.
Attention to detail - I am meticulous in my work, ensuring accuracy and quality.
Team player - I collaborate effectively with colleagues, contributing to a positive work environment.
Adaptability - I am able to quickly learn n...
I appeared for an interview in Feb 2025, where I was asked the following questions.
Achieve O(1) insert and delete using a hash table and a doubly linked list for efficient data management.
Use a hash table to store key-value pairs for O(1) access.
Maintain a doubly linked list to keep track of the order of elements.
For insertion, add the new element to the head of the linked list and update the hash table.
For deletion, remove the element from the linked list and hash table simultaneously.
Example: Inser...
Some of the top questions asked at the Oracle Software Developer interview -
The duration of Oracle Software Developer interview process can vary, but typically it takes about less than 2 weeks to complete.
based on 54 interview experiences
Difficulty level
Duration
based on 111 reviews
Rating in categories
Senior Software Engineer
2.5k
salaries
| ₹19.7 L/yr - ₹36 L/yr |
Principal Consultant
2.2k
salaries
| ₹20 L/yr - ₹34.2 L/yr |
Senior Consultant
2.2k
salaries
| ₹12.8 L/yr - ₹23.5 L/yr |
Senior Member of Technical Staff
1.9k
salaries
| ₹23.8 L/yr - ₹41 L/yr |
Software Developer
1.5k
salaries
| ₹15.3 L/yr - ₹27.4 L/yr |
SAP
MongoDB
Salesforce
IBM