Add office photos
Engaged Employer

Oracle

3.7
based on 5.1k Reviews
Filter interviews by

Lava International Interview Questions and Answers

Updated 6 Jul 2024
Popular Designations

Q1. Find the highest element from a BST and implement insertion operation of BST.

Ans.

To find the highest element in a BST, perform a right traversal until reaching the rightmost leaf node.

  • Perform a right traversal starting from the root node until reaching the rightmost leaf node to find the highest element.

  • Implement the insertion operation by comparing the value to be inserted with each node and traversing left or right accordingly.

  • Ensure that the BST property is maintained during insertion by placing smaller values to the left and larger values to the right...read more

Add your answer

Q2. How do you explain a C student to use Java

Ans.

Explain the basics of Java in a simple and practical way, focusing on hands-on examples and real-world applications.

  • Start by explaining the basic syntax and structure of Java code

  • Use simple examples to demonstrate concepts like variables, loops, and functions

  • Show how Java is used in real-world applications, such as building websites or mobile apps

Add your answer

Q3. Permutation of the number without duplicates

Ans.

Generate all permutations of a given number without duplicates

  • Use backtracking to generate all possible permutations

  • Avoid duplicates by keeping track of used digits

  • Recursively swap digits to generate permutations

Add your answer

Q4. Delete nth element from end in a LINKEDLIST.

Ans.

To delete the nth element from the end in a LinkedList, we can use two pointers approach.

  • Use two pointers - one to traverse the list and another to keep track of the nth element from the end.

  • Calculate the distance between the two pointers and delete the node at the second pointer.

Add your answer
Discover Lava International interview dos and don'ts from real experiences

Q5. What is memory management

Ans.

Memory management is the process of controlling and coordinating computer memory, assigning portions called blocks to various running programs.

  • Memory allocation - assigning memory blocks to programs as needed

  • Memory deallocation - releasing memory blocks when no longer needed

  • Memory fragmentation - the division of memory into small blocks leading to inefficient use

  • Memory leaks - when a program fails to release memory after use, causing memory to be unavailable for other program...read more

Add your answer

Q6. Heap Sort with Max Heap

Ans.

Heap Sort is a comparison-based sorting algorithm that uses a binary heap data structure.

  • Heap Sort involves building a max heap from the input array, then repeatedly removing the maximum element and rebuilding the heap.

  • The time complexity of Heap Sort is O(n log n) in the worst case scenario.

  • Example: Given an array [4, 10, 3, 5, 1], after applying Heap Sort, the sorted array would be [1, 3, 4, 5, 10].

Add your answer

Q7. detect cycle in directed graph

Ans.

Detect cycle in directed graph using depth-first search algorithm.

  • Use depth-first search (DFS) algorithm to traverse the graph.

  • Maintain a visited set to keep track of visited nodes.

  • If a node is visited again during traversal, there is a cycle in the graph.

Add your answer

Q8. Reverse a LinkedLis

Ans.

To reverse a LinkedList, iterate through the list and change the direction of pointers.

  • Iterate through the LinkedList and keep track of the previous, current, and next nodes.

  • Update the pointers to reverse the direction of the nodes.

  • Repeat until the end of the list is reached.

Add your answer

More about working at Oracle

#22 Best Mega Company - 2022
#3 Best Internet/Product Company - 2022
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos

Interview Process at Lava International

based on 8 interviews
2 Interview rounds
One-on-one Round
Technical Round
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Java Developer Interview Questions from Similar Companies

3.7
 • 190 Interview Questions
3.7
 • 164 Interview Questions
3.9
 • 53 Interview Questions
3.9
 • 45 Interview Questions
4.4
 • 32 Interview Questions
4.4
 • 10 Interview Questions
View all
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
70 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter