Tip 1: Always focus on quality questions, not quantity. Solving too many questions of the same type will only satisfy your pseudo ego.
Tip 2: While solving a DSA question, make it a habit to speak your thoughts out loud. Imagine that you are explaining your approach to the interviewer. This helps you structure your thoughts clearly during real interviews.
Tip 3: Make it a habit to solve questions within 20 minutes. If you are completely stuck after 20 minutes, you can look at hints. However, don’t spend too much time on each question—limit it to a maximum of 40 minutes. Avoid spending the entire day on a single question.
Tip 1: Only include projects that you have actually built and understand completely, as interviewers usually ask detailed questions about them.
Tip 2: Keep your resume clear and concise (preferably one page) and highlight the impact of your projects rather than just listing technologies.
The online assessment was conducted in the evening, and the overall process was smooth.



I analyzed the operation and realized that it effectively allows transferring values from the right side of the array to the left to balance the values. To solve the problem efficiently, I applied binary search on the answer, where the search space represented the possible minimum and maximum value. For each candidate value, I checked whether it was feasible to redistribute the elements without exceeding that maximum. Using this feasibility check with binary search allowed me to determine the minimum possible maximum value achievable.



1st Row - represents the ID of the function.
2nd Row - represents whether the function has started or ended where 1 denotes the start and -1 denotes the end.
3rd Row - represents the TIMESTAMP of the log.
1. The exclusive time of a function is the sum of execution times for all calls of that function.
2. A function can be called multiple times, possibly recursively.
3. No two events will happen at the same time where an event denotes either a start or end of a function call. This basically means no two logs have the same timestamp.
4. Each function has an end log for each start log.
Consider the following input
0 1 1 1 2 2 1 0
1 1 1 -1 1 -1 -1 -1
0 2 5 7 8 10 11 14
Thus, we return [5, 7, 3] as a process with ID 0 has taken 5 units of time and process with ID 1 has taken 7 units of time and process ID 2 has taken 3 units of time. A process’s exclusive time is the sum of exclusive times for all function calls in the program. As process Id 1 has called itself so exclusive time is the sum of exclusive times(5 + 2).
I processed the logs chronologically and maintained the active session count for each user. I used a HashMap to store the current session count of each user and updated it based on login or logout actions. Whenever a user's session count exceeded M, I added their user ID to a set to ensure uniqueness. Finally, I converted the set into a sorted list of user IDs for the output.



If there is no path between 'src' and 'ith' vertex, the value at 'ith' index in the answer array will be 10^8.

3 3 1
1 2 2
1 3 2
2 3 -1
In the above graph:
The length of the shortest path between vertex 1 and vertex 1 is 1->1 and the cost is 0.
The length of the shortest path between vertex 1 and vertex 2 is 1->2 and the cost is 2.
The length of the shortest path between vertex 1 and vertex 3 is 1->2->3 and the cost is 1.
Hence we return [0, 2, 1].
It's guaranteed that the graph doesn't contain self-loops and multiple edges. Also, the graph does not contain negative weight cycles.
Step 1: I first clarified the problem constraints, such as whether the graph contained negative edge weights and whether it was directed or undirected.
Step 2: I explained that if all edge weights are non-negative, the most efficient approach is Dijkstra’s algorithm using a priority queue to compute shortest paths.
Step 3: I discussed that if the graph contains negative edge weights, then the Bellman–Ford algorithm should be used because Dijkstra’s algorithm does not work correctly with negative weights.
Step 4: I described the implementation of Dijkstra’s algorithm using an adjacency list and a min-heap priority queue to always process the node with the smallest distance.
Step 5: I also explained how the Bellman–Ford algorithm relaxes all edges N−1 times and can additionally detect negative-weight cycles in the graph.
In this round, the interviewer mainly focused on behavioral and experience-based questions. I was asked to explain my internship experience at the startup Cograd and the application I built during that time. The interviewer also asked how the project helped the company and what my role was in the development process.
There were questions about how I handle conflicts within a team, how I collaborate with seniors and juniors while working on projects, and some general HR questions about my strengths, motivations, and career goals.
Tip 1:Be honest and clear while explaining your past experiences, especially internships and projects mentioned in your resume. Interviewers often look for how you handled responsibilities and challenges.
Tip 2:Structure your answers with real examples from your work or projects, as practical experiences make your answers more convincing and easier for interviewers to understand.
Tip 3:Also they will ask for your weakness, so don't tell anything absurd about you. Just frame something like, that you are that type of person, who can't go home without completing the task assigned to me, something like this. At the end of the day, you have to please a human only.
The final round was more of an interaction with a senior HR representative. The discussion was informal and focused on understanding my personality, interests, and cultural fit for the company. We talked about my interests outside academics, including my interest in Formula 1 racing. I also discussed how I admire the long-term partnership between Oracle and Formula 1 teams.
The conversation mainly revolved around my interests, my motivation to work at Oracle, and a general discussion about the company and my future goals.
Tip 1: Be natural and confident in such rounds. The interviewer mainly evaluates personality and communication skills.
Tip 2: Try to connect your interests with the company or role whenever possible, as it shows genuine enthusiasm and awareness about the organization.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
Which traversal uses a queue as its primary data structure?