Tip 1 : Must do Previously asked Interviews Questions.
Tip 2 : Prepare OS, DBMS, OOPs, Computer Networks well.
Tip 3 : Prepare well for one project mentioned in the resume, the interviewer may ask any question related to the project, especially about the networking part of the project.
Tip 1 : Highlight your major projects in your resume
Tip 2 : Do not put false information in your resume
Tip 3 : Make it simple, crisp and one page resume
This was online test having 4 sections. Each subset had its own time for solving.
There were 4 subsets:
English and Communication Skill Assessments(20 minutes)
Software Engineering Basics(45 minutes)
OS, OOPS, DBMS, Networking(22 minutes)
Data Structures and Aptitude(20 minutes)
Number Of MCQs - 65
This was technical round taken by SDE at oracle having 3+ year of experience.



You can’t sell without buying first.
For the given array [ 2, 100, 150, 120],
The maximum profit can be achieved by buying the stock at minute 0 when its price is Rs. 2 and selling it at minute 2 when its price is Rs. 150.
So, the output will be 148.
The algorithtm runs through the array and checks for new minimums and new maximums. Whenever a new min is found, both min and max are overrided. Whenever a new maximum is found, it checks if we can get a higher profit with the current min and this new max. It only overrides profit if this is true.
class Solution {
public int maxProfit(int[] prices) {
int min = prices[0];
int max = prices[0];
int profit = 0;
for(int i = 1; i < prices.length; i++){
if (prices[i] <= min){
min = prices[i];
max = prices[i];
}
if(prices[i] > max){
max = prices[i];
if(profit < max - min)
profit = max - min;
}
}
return profit;
}
}



For the given 5 intervals - [1, 4], [3, 5], [6, 8], [10, 12], [8, 9].
Since intervals [1, 4] and [3, 5] overlap with each other, we will merge them into a single interval as [1, 5].
Similarly, [6, 8] and [8, 9] overlap, merge them into [6,9].
Interval [10, 12] does not overlap with any interval.
Final List after merging overlapping intervals: [1, 5], [6, 9], [10, 12].
/**
* @param {number[][]} intervals
* @return {number[][]}
*/
var merge = function(intervals) {
if(intervals.length < 2) return intervals;
intervals.sort((a,b) => a[0] - b[0]);
//console.log(intervals);
let result = [intervals[0]];
for (let i = 1; i < intervals.length; i++){
// make sure we are always pulling the last value from result array
let previousArr = result[result.length - 1];
// if the values need merging, update the previous value
if (previousArr[1] >= intervals[i][0]){
previousArr[1] = Math.max(previousArr[1], intervals[i][1]);
}else {
// otherwise add the value to the result array
result.push(intervals[i]);
}
}
return result;
}
This was HR round taken by the senior manager at oracle. Interiewer was very friendly and supported during the interview.
He started with his introduction first and asked me to introduce myself. then He asked some questions based on my resume. Then he asked me to explain one of my projects. I had explained to him that project. He asked me which one is a team project. I told him about one of my projects which was a team project. He then asked me to explain that project and then some general questions like conflicts in the team, problems faced during projects. After that, he explained a bit about Oracle and its current work. Why do you want to join oracle Do you have any offer in hand what are your strengths and weakness Will you leave oracle for higher pay Tell me about the most challenging project
Tip 1 : Make sure your resume is up-to-date
Tip 2 : Be confident and focus on your communication
Tip 3 : Prepare for the behavioural questions

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
How do you remove whitespace from the start of a string?