Problem database last updated: June 20, 2025

ZZenefits logo

Zenefits Coding Interview Questions

17 problems · 5 Easy, 8 Medium, 4 Hard · Ranked #104 of 458

Difficulty breakdown

5 Easy

29% · avg 23%

8 Medium

47% · avg 59%

4 Hard

24% · avg 18%

Top topics

array
35.3%
string
23.5%
hash-table
17.6%
divide-and-conquer
17.6%4.3x
stack
17.6%2x
linked-list
17.6%2.4x

Interview profile

Based on 17 reported problems, Zenefits interviews are slightly harder than average - 24% Hard vs 18% across all companies.

Compared to the industry average, Zenefits puts unusual emphasis on topological-sort (11.8% of problems, 10x the industry average), divide-and-conquer (17.6% of problems, 4.3x the industry average), graph (11.8% of problems, 4x the industry average). If you're short on time, these are the categories to double down on.

The most common topics are array (35.3%), string (23.5%), hash-table (17.6%), divide-and-conquer (17.6%). Problems below are sorted by frequency, the ones at the top are asked most often.

All 17 problems

Majority Element

Solve

Given an array nums of size n, return the majority element.

EasyVery Likely
arrayhash-tabledivide-and-conquer

Valid Parentheses

Solve

Given a string s containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.

EasyVery Likely
stringstack

Valid Palindrome

Solve

A phrase is a palindrome if, after converting all uppercase letters into lowercase letters and removing all non-alphanumeric characters, it reads the same forwa...

EasyVery Likely
two-pointersstring

Reverse Linked List

Solve

Given the head of a singly linked list, reverse the list, and return the reversed list.

EasyVery Likely
linked-listrecursion

Majority Element II

Solve

Given an integer array of size n, find all elements that appear more than ⌊ n/3 ⌋ times.

MediumVery Likely
arrayhash-tablesorting

Excel Sheet Column Title

Solve

Given an integer columnNumber, return its corresponding column title as it appears in an Excel sheet.

EasyVery Likely
mathstring

Median of Two Sorted Arrays

Solve

Given two sorted arrays nums1 and nums2 of size m and n respectively, return the median of the two sorted arrays.

HardVery Likely
arraybinary-searchdivide-and-conquer

Trapping Rain Water

Solve

Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it can trap after raining.

HardVery Likely
arraytwo-pointersdynamic-programming

Generate Parentheses

Solve

Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.

MediumVery Likely
stringdynamic-programmingbacktracking

Number of Islands

Solve

Given an m x n 2D binary grid grid which represents a map of '1's (land) and '0's (water), return the number of islands.

MediumVery Likely
arraydepth-first-searchbreadth-first-search

N-Queens II

Solve

The n-queens puzzle is the problem of placing n queens on an n x n chessboard such that no two queens attack each other.

HardVery Likely
backtracking

Course Schedule

Solve

There are a total of numCourses courses you have to take, labeled from 0 to numCourses - 1. You are given an array prerequisites where prerequisites[i] = [ai, b...

MediumVery Likely
depth-first-searchbreadth-first-searchgraph

Course Schedule II

Solve

There are a total of numCourses courses you have to take, labeled from 0 to numCourses - 1. You are given an array prerequisites where prerequisites[i] = [ai, b...

MediumVery Likely
depth-first-searchbreadth-first-searchgraph

LRU Cache

Solve

Design a data structure that follows the constraints of a Least Recently Used (LRU) cache.

MediumVery Likely
hash-tablelinked-listdesign

Sliding Window Maximum

Solve

You are given an array of integers nums, there is a sliding window of size k which is moving from the very left of the array to the very right. You can only see...

HardVery Likely
arrayqueuesliding-window

Min Stack

Solve

Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.

MediumVery Likely
stackdesign

Convert Sorted List to Binary Search Tree

Solve

Given the head of a singly linked list where elements are sorted in ascending order, convert it to a height-balanced binary search tree.

MediumVery Likely
linked-listdivide-and-conquertree

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 Zenefits interviews.

Very Likely

75-100%

Likely

50-74%

Sometimes

25-49%

Rare

0-24%

Preparing for your Zenefits coding interview

Zenefits interviews focus heavily on array, string, hash-table 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. Zenefits 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 Zenefits ask in interviews?add

Zenefits has been reported to ask 17 distinct coding problems. The most common topics are array, string, hash-table. 5 are Easy difficulty, 8 are Medium, and 4 are Hard. Problems are sorted by frequency - the ones at the top are asked most often.

How hard are Zenefits coding interviews?add

Based on 17 reported problems, Zenefits interviews are slightly harder than average - 24% Hard vs 18% across all companies. 47% 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 Zenefits coding interview?add

Start with the highest-frequency problems listed on this page. Focus on the core topics: array, string, hash-table. 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 Zenefits interview?

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

Simulate a Zenefits interview with AIarrow_forward