Problem database last updated: June 20, 2025

UUKG logo

UKG Coding Interview Questions

9 problems · 3 Easy, 4 Medium, 2 Hard · Ranked #153 of 458

Difficulty breakdown

3 Easy

33% · avg 23%

4 Medium

44% · avg 59%

2 Hard

22% · avg 18%

Top topics

array
55.6%
math
33.3%2.6x
sorting
33.3%2.3x
string
33.3%
binary-indexed-tree
22.2%50.1x
segment-tree
22.2%36.5x

Interview profile

Based on 9 reported problems, UKG interviews are slightly harder than average - 22% Hard vs 18% across all companies.

Compared to the industry average, UKG puts unusual emphasis on binary-indexed-tree (22.2% of problems, 50.1x the industry average), geometry (22.2% of problems, 41.1x the industry average), segment-tree (22.2% of problems, 36.5x the industry average). If you're short on time, these are the categories to double down on.

The most common topics are array (55.6%), math (33.3%), sorting (33.3%), string (33.3%). Problems below are sorted by frequency, the ones at the top are asked most often.

All 9 problems

Maximum Area Rectangle With Point Constraints I

Solve

You are given an array of points where points[i] = [xi, yi] represents the coordinates of a point on an infinite plane. Your task is to find the maximum area of...

MediumVery Likely
binary-indexed-treesegment-treegeometry

Maximum Area Rectangle With Point Constraints II

Solve

There are n points on an infinite plane. Given two integer arrays xCoord and yCoord where (xCoord[i], yCoord[i]) represents the coordinates of the ith point, fi...

HardVery Likely
binary-indexed-treesegment-treegeometry

Special Binary String

Solve

Special binary strings are binary strings with the following two properties:

HardVery Likely
stringdivide-and-conquersorting

Minimum Length of Anagram Concatenation

Solve

You are given a string s, which is known to be a concatenation of anagrams of some string t.

MediumVery Likely
hash-tablestringcounting

Two Sum

Solve

Given an array of integers nums and an integer target, return the indices of the two numbers that add up to target.

EasyLikely
arrayhash-map

Longest Consecutive Sequence

Solve

Given an unsorted array of integers nums, return the length of the longest consecutive elements sequence.

MediumLikely
arrayhash-tableunion-find

Valid Word

Solve

A word is considered valid if:

EasyLikely
string

Angle Between Hands of a Clock

Solve

Given two numbers, hour and minutes, return the smaller angle (in degrees) formed between the hour and the minute hand.

MediumLikely
math

Best Time to Buy and Sell Stock

Solve

You are given an array prices where prices[i] is the price of a given stock on the ith day.

EasyLikely
arraydynamic-programming

How often are these problems asked?

Frequency scores are based on crowdsourced interview reports. A higher score means the problem has been reported more often in recent UKG interviews.

Very Likely

75-100%

Likely

50-74%

Sometimes

25-49%

Rare

0-24%

Preparing for your UKG coding interview

UKG interviews focus heavily on array, math, sorting problems. If you're short on time, these are the categories to prioritize. The problems on this page are sorted by frequency, so start from the top and work your way down.

Beyond solving problems, practice explaining your approach. UKG interviewers care about your thought process - how you break down a problem, consider edge cases, and evaluate tradeoffs between solutions. A clean O(n) solution you can explain clearly beats an O(log n) solution you can't articulate.

Looking for more companies? Browse all 458 companies in our directory, or sharpen your fundamentals with our free data structure visualizers and AI-powered DSA tutor.

Frequently Asked Questions

What coding problems does UKG ask in interviews?add

UKG has been reported to ask 9 distinct coding problems. The most common topics are array, math, sorting. 3 are Easy difficulty, 4 are Medium, and 2 are Hard. Problems are sorted by frequency - the ones at the top are asked most often.

How hard are UKG coding interviews?add

Based on 9 reported problems, UKG interviews are slightly harder than average - 22% Hard vs 18% across all companies. 44% of questions are Medium difficulty. Focus on the high-frequency Medium problems first, then work through the Hard ones.

How should I prepare for a UKG coding interview?add

Start with the highest-frequency problems listed on this page. Focus on the core topics: array, math, sorting. Practice solving them under time pressure and explaining your approach out loud. Mock interviews with AI can simulate the real experience.

Other companies to explore

Ready to ace your UKG interview?

Simulate a real UKG coding interview with an AI interviewer. Get a scorecard with specific feedback on your problem-solving, code quality, and communication.

Simulate a UKG interview with AIarrow_forward