UHG interview questions

85 questions from 15 candidate reports · 2016 to 2024

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.
asked 2×easyPractice this →
Detect a cycle in a linked list
asked oncemediumPractice this →
Write the Merge Sort algorithm/code
asked oncemediumPractice this →
Rotate a linked list in groups of k.
asked oncemediumPractice this →
Rotate a linked list in groups of size k.
asked oncemediumPractice this →
Convert a binary tree into its mirror image in-place
asked oncemediumPractice this →
Find the distance between two nodes in a binary tree
asked oncemediumPractice this →
Find the Longest Common Subsequence (LCS) of two strings
asked oncemediumPractice this →
Implement sorting of a 2-D array in the most optimized way
asked oncemediumPractice this →
Count all triplets in an array whose sum is equal to a perfect cube
asked oncemediumPractice this →
Find the Lowest Common Ancestor (LCA) of two nodes in a binary tree
asked oncemediumPractice this →
If one pointer moves at speed 4 and another at speed 1 in a linked list, will they meet if there is a cycle?
asked oncemediumPractice this →
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.
asked oncemediumPractice this →
Given a social network graph (like Facebook) implemented using adjacency lists, find the minimum degree of separation between two given people.
asked oncemediumPractice this →
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?
asked oncemediumPractice this →
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.
asked oncemediumPractice this →
Implement AVL tree balancing and explain all rotation cases
asked oncehardPractice this →
Maximize profit by buying and selling a stock at most k times.
asked oncehardPractice this →
Maximize profit from stock prices when you are allowed to buy and sell stocks at most k times.
asked oncehardPractice this →
Reverse a linked list
asked onceeasyPractice this →
Sort an array of integers
asked onceeasyPractice this →
Check whether a given string is a palindrome
asked onceeasyPractice this →
Write code to generate the Fibonacci series.
asked onceeasyPractice this →

CS fundamentals

Showing 23 of 43 reported in this area

Write SQL queries involving joins
asked oncemediumPractice this →
Explain how the C++ compiler works
asked oncemediumPractice this →
Explain the Huffman coding algorithm
asked oncemediumPractice this →
Explain the types of schedules in DBMS
asked oncemediumPractice this →
Explain CPU scheduling in an Operating System
asked oncemediumPractice this →
Explain virtual functions and how the compiler works with them
asked oncemediumPractice this →
What are the advantages of NoSQL databases over SQL databases?
asked oncemediumPractice this →
What are some recent technologies that use IoT, and what is the future scope of IoT?
asked oncemediumPractice this →
Explain how a database works in a real-world application and how it is used in projects
asked oncemediumPractice this →
What is the difference between JSON and XML, and why is JSON preferred over XML in industry?
asked oncemediumPractice this →
Given a code snippet, identify whether it demonstrates runtime polymorphism or compile-time polymorphism.
asked oncemediumPractice this →
Explain what a Binary Search Tree (BST) is, its prerequisites, what a balanced BST is, and how to balance a BST
asked oncemediumPractice this →
What is IoT (Internet of Things)?
asked onceeasyPractice this →
Explain different sorting algorithms.
asked onceeasyPractice this →
Explain SQL concepts and write SQL queries
asked onceeasyPractice this →
Explain the difference between TCP and UDP
asked onceeasyPractice this →
Explain function overloading and recursion.
asked onceeasyPractice this →
Which is the best sorting algorithm and why?
asked onceeasyPractice this →
What is a Virtual Function and why is it used?
asked onceeasyPractice this →
Explain Inheritance in Object-Oriented Programming
asked onceeasyPractice this →
Explain Polymorphism in Object-Oriented Programming
asked onceeasyPractice this →
Can an abstract class contain a non-abstract method?
asked onceeasyPractice this →
Explain Encapsulation in Object-Oriented Programming
asked onceeasyPractice this →

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?
asked 2×mediumPractice this →
Design a vending machine system
asked oncemediumPractice this →
Design a student registration management system
asked oncemediumPractice this →
How would you implement MS Excel using data structures, supporting addition and deletion of rows and columns?
asked oncemediumPractice this →
How would you handle incorrect priority assignment in a recommendation system so that recommendations improve over time?
asked oncemediumPractice this →
How would you handle incorrect priority weights in a recommendation system and adapt recommendations based on user behavior over time?
asked oncemediumPractice this →
Design a movie ticket booking platform
asked oncehardPractice this →
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.
asked oncehardPractice this →
Design a personalized movie recommendation system to suggest the (k+1)th movie based on movies already watched, without using machine learning libraries.
asked oncehardPractice this →
Design a system to find trending words on Twitter based on frequency and timestamps, ignoring stopwords and special characters, and handling similar word variations.
asked oncehardPractice this →
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.
asked oncehardPractice this →

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
asked oncemediumPractice this →
Find the day of the week for a given date
asked onceeasyPractice this →

Behavioural

1 questions reported in this area

How would you handle a challenging workplace situation and why?

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 practising

Common 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%.

Keep reading