Professional Documents
Culture Documents
Important
Important
Important
1. Print the employee’s name with highest salary and his/her department name
2. 2ND HEIGHEST SALARY
3. Print the employee’s name with highest salary and his/her department name
4. PRINT DETAILS OF EMPLOYEE EARNING MAX SALARY IN EACH DEPARTMENT
5. Select Nth Highest salary from employee table
6. Select TOP N salary from employee table
7. What are different types of JOINS in SQL
8. Delete duplicate rows from a table
10. Write an SQL Query to find employee whose Salary is equal or greater than 10000.
11. Write an SQL Query to find name of employee whose name Start with ‘M
12. How to get 3 Max salaries from emp table?
13. How to fetch only common records from two tables emp and emp2?
14. How can I retrieve all records of emp1 those should not present in emp2
15. Count the total Sal, Dept no wise where more than 2 employees exist.
16. how will you filter duplicate records from table
17. Difference between UNION & UNION ALL
18. What are constraints in Database table?
19. How do you find duplicates in a particular column
Display all duplicates (with frequency) in the table.
Delete all duplicates in the table
https://practice.geeksforgeeks.org/problems/diameter-of-binary-tree/1
https://www.geeksforgeeks.org/print-longest-substring-without-repeating-characters/
https://www.geeksforgeeks.org/write-a-c-program-to-calculate-powxn/
https://practice.geeksforgeeks.org/problems/inorder-traversal-iterative/1/
https://www.geeksforgeeks.org/c-program-find-largest-element-array
https://www.geeksforgeeks.org/program-print-upto-100-without-using-loops/
https://www.geeksforgeeks.org/find-two-rectangles-overlap/
https://www.geeksforgeeks.org/two-water-jug-puzzle/
https://www.geeksforgeeks.org/difference-between-drop-and-truncate-in-sql
https://www.geeksforgeeks.org/difference-between-commit-and-rollback-in-sql/
https://practice.geeksforgeeks.org/problems/the-magical-pond-puzzle
https://www.geeksforgeeks.org/reverse-a-linked-list/
https://www.geeksforgeeks.org/largest-sum-contiguous-subarray/
https://www.geeksforgeeks.org/sort-an-array-of-0s-1s-and-2s/
https://www.geeksforgeeks.org/russian-peasant-multiply-two-numbers-using-bitwise-operators/
https://www.geeksforgeeks.org/delete-a-node-from-linked-list-without-head-pointer/
https://www.geeksforgeeks.org/floor-square-root-without-using-sqrt-function-recursive/
https://www.geeksforgeeks.org/print-all-triplets-with-given-sum/
https://www.geeksforgeeks.org/remove-duplicates-from-a-given-string/
https://www.geeksforgeeks.org/merge-two-sorted-arrays/
https://www.geeksforgeeks.org/insert-a-node-at-a-specific-position-in-a-linked-list /
https://www.geeksforgeeks.org/check-if-two-strings-are-same-or-not-without-using-library-functions/
https://www.geeksforgeeks.org/sort-an-array-of-0s-1s-and-2s/
https://www.geeksforgeeks.org/remove-nth-node-from-end-of-the-linked-list/
https://www.geeksforgeeks.org/merge-two-sorted-linked-lists/
https://www.geeksforgeeks.org/count-ways-reach-nth-stair-using-step-1-2-3/
VVVIMP
https://www.codinginterview.com/oracle-interview-questions
https://www.interviewkickstart.com/interview-questions/oracle-interview-questions
https://practice.geeksforgeeks.org/explore?page=1&company[]=Oracle&sortBy=submissions
Puzzles
https://www.geeksforgeeks.org/puzzle-1-how-to-measure-45-minutes-using-two-identical-wires/
https://www.geeksforgeeks.org/puzzle-12-maximize-probability-of-white-ball/
https://www.geeksforgeeks.org/puzzle-mislabeled-jars/
A frog was at the bottom of a well that is 30 feet deep. It jumps 3 feet each day and falls back 2
feet each day. How many days will it take to reach the top?
https://www.geeksforgeeks.org/puzzle-100-people-in-a-circle-with-gun-puzzle/
A person had some chocolates. he distributed these chocolates among 25 children in such a way
that he gave one chocolate to the first child, 3 chocolates to the second child, 5 chocolates to the
third child, and so on till the 25th child. find the number of chocolates the person had. write a
mathematical property to support your answer.
Theory
Advantages of Binary Search Tree and why do we want it to be balanced.
Explain about pre-order, in-order, post-order traversal in a tree and write code for in-order, pre-order
and post-order.
What all sorting algorithms do you know? Explain Time and space complexity of all those
algorithms? Tell me what is the best sorting algorithm among them and why.
Which has better worst-case time complexity unordered map or map?
Which data structure is best for search operation and which data structure is best for delete operation.
Advantage of linked list over arrays.
Advantage of trees over linked list and arrays.
SORTING ALGORITHMS THEORY
Merge SORT
Quick SORT
Heap SORT
Insertion SORT
Selection SORT
Bubble SORT
You need to pick the best sorting Algorithm and Why? (VVVIMP)
Explain various searching algorithms and their time complexities
what are trees, and BST, how is BST unbalanced, can we make it balanced
What is an AVL tree and how do rotations work in AVL trees?
Explain about BFS and DFS in graph
You need to sort an array of numbers which sorting algorithm you will use and why.