UHG interview questions
Online test → Technical → HR·60% entry level
DSA
Showing 23 of 48 reported in this area
Find the sum of all digits of a number repeatedly until the sum becomes a single digit.
Detect a cycle in a linked list
Write the Merge Sort algorithm/code
Rotate a linked list in groups of k.
Rotate a linked list in groups of size k.
Convert a binary tree into its mirror image in-place
Find the distance between two nodes in a binary tree
Find the Longest Common Subsequence (LCS) of two strings
Implement sorting of a 2-D array in the most optimized way
Count all triplets in an array whose sum is equal to a perfect cube
Find the Lowest Common Ancestor (LCA) of two nodes in a binary tree
If one pointer moves at speed 4 and another at speed 1 in a linked list, will they meet if there is a cycle?
Count the total number of 1s present in a number; first for an integer, then extend the solution to handle a decimal (floating-point) number.
Given a social network graph (like Facebook) implemented using adjacency lists, find the minimum degree of separation between two given people.
Given a continuous input stream of integers, how will you keep them sorted and print the output at any point in time? What data structure will you use?
Given a graph representing a social network (like Facebook), find the minimum degree of separation between two given people. The graph is implemented using adjacency lists.
Implement AVL tree balancing and explain all rotation cases
Maximize profit by buying and selling a stock at most k times.
Maximize profit from stock prices when you are allowed to buy and sell stocks at most k times.
Reverse a linked list
Sort an array of integers
Check whether a given string is a palindrome
Write code to generate the Fibonacci series.
CS fundamentals
Showing 23 of 43 reported in this area
Write SQL queries involving joins
Explain how the C++ compiler works
Explain the Huffman coding algorithm
Explain the types of schedules in DBMS
Explain CPU scheduling in an Operating System
Explain virtual functions and how the compiler works with them
What are the advantages of NoSQL databases over SQL databases?
What are some recent technologies that use IoT, and what is the future scope of IoT?
Explain how a database works in a real-world application and how it is used in projects
What is the difference between JSON and XML, and why is JSON preferred over XML in industry?
Given a code snippet, identify whether it demonstrates runtime polymorphism or compile-time polymorphism.
Explain what a Binary Search Tree (BST) is, its prerequisites, what a balanced BST is, and how to balance a BST
What is IoT (Internet of Things)?
Explain different sorting algorithms.
Explain SQL concepts and write SQL queries
Explain the difference between TCP and UDP
Explain function overloading and recursion.
Which is the best sorting algorithm and why?
What is a Virtual Function and why is it used?
Explain Inheritance in Object-Oriented Programming
Explain Polymorphism in Object-Oriented Programming
Can an abstract class contain a non-abstract method?
Explain Encapsulation in Object-Oriented Programming
System design
Showing 11 of 13 reported in this area
How would you optimize a recommendation system with O(n^3) time complexity to work efficiently on a large dataset?
Design a vending machine system
Design a student registration management system
How would you implement MS Excel using data structures, supporting addition and deletion of rows and columns?
How would you handle incorrect priority assignment in a recommendation system so that recommendations improve over time?
How would you handle incorrect priority weights in a recommendation system and adapt recommendations based on user behavior over time?
Design a movie ticket booking platform
Design a personalized movie recommendation engine to suggest the (k+1)th movie to a user based on previously watched movies, without using ML libraries.
Design a personalized movie recommendation system to suggest the (k+1)th movie based on movies already watched, without using machine learning libraries.
Design a system to find trending words on Twitter based on frequency and timestamps, ignoring stopwords and special characters, and handling similar word variations.
Design a system to find trending words on Twitter based on frequency and recency, ignoring special characters and stop words, and treating similar elongated words as the same.
Aptitude
Showing 2 of 5 reported in this area
Solve quantitative aptitude problems involving geometry, heights and distances, permutations and combinations, probability, arrangements, and logical reasoning
Find the day of the week for a given date
Behavioural
1 questions reported in this area
How would you handle a challenging workplace situation and why?
asked oncePractice this →
Showing 60 of 85 questions. Ranked by how often the same question came back across reports.
Practise a UHG-style interview
A spoken interview built from these questions, scored when you finish; the report is yours.
Start practisingCommon questions
What questions does UHG ask?
Candidate interview reports most often cover DSA (44%) and CS fundamentals (39%).
How many rounds does UHG interview have?
Candidate interview reports show an average of 3.3 rounds per experience, with a typical sequence of Online test → Technical → HR. Individual interview paths can vary.
Is the UHG interview hard?
Among questions with a reported difficulty, the mix is easy 52%, medium 40%, hard 8%.