Problem database last updated: June 20, 2025

AAttentive logo

Attentive Coding Interview Questions

9 problems · 2 Easy, 5 Medium, 2 Hard · Ranked #163 of 458

Difficulty breakdown

2 Easy

22% · avg 23%

5 Medium

56% · avg 59%

2 Hard

22% · avg 18%

Top topics

string
55.6%2x
array
55.6%
stack
33.3%3.9x
hash-table
33.3%1.5x
recursion
22.2%4.9x
math
22.2%1.8x

Interview profile

Based on 9 reported problems, Attentive interviews are slightly harder than average - 22% Hard vs 18% across all companies. The majority (56%) of questions are Medium difficulty, which is typical for companies that want to see solid fundamentals without excessive trick questions.

Compared to the industry average, Attentive puts unusual emphasis on recursion (22.2% of problems, 4.9x the industry average), stack (33.3% of problems, 3.9x the industry average), string (55.6% of problems, 2x the industry average). If you're short on time, these are the categories to double down on.

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

All 9 problems

Remove All Adjacent Duplicates in String II

Solve

You are given a string s and an integer k, a k duplicate removal consists of choosing k adjacent and equal letters from s and removing them, causing the left an...

MediumVery Likely
stringstack

Parse Lisp Expression

Solve

You are given a string expression representing a Lisp-like expression to return the integer value of.

HardVery Likely
hash-tablestringstack

Valid Palindrome II

Solve

Given a string s, return true if the s can be palindrome after deleting at most one character from it.

EasyLikely
two-pointersstringgreedy

Find Pivot Index

Solve

Given an array of integers nums, calculate the pivot index of this array.

EasyLikely
arrayprefix-sum

Find First and Last Position of Element in Sorted Array

Solve

Given an array of integers nums sorted in non-decreasing order, find the starting and ending position of a given target value.

MediumLikely
arraybinary-search

Top K Frequent Words

Solve

Given an array of strings words and an integer k, return the k most frequent strings.

MediumLikely
arrayhash-tablestring

Valid Sudoku

Solve

Determine if a 9 x 9 Sudoku board is valid. Only the filled cells need to be validated according to the following rules:

MediumLikely
arrayhash-tablematrix

Evaluate Reverse Polish Notation

Solve

You are given an array of strings tokens that represents an arithmetic expression in a Reverse Polish Notation.

MediumLikely
arraymathstack

Integer to English Words

Solve

Convert a non-negative integer num to its English words representation.

HardLikely
mathstringrecursion

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

Very Likely

75-100%

Likely

50-74%

Sometimes

25-49%

Rare

0-24%

Preparing for your Attentive coding interview

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

Attentive has been reported to ask 9 distinct coding problems. The most common topics are string, array, stack. 2 are Easy difficulty, 5 are Medium, and 2 are Hard. Problems are sorted by frequency - the ones at the top are asked most often.

How hard are Attentive coding interviews?add

Based on 9 reported problems, Attentive interviews are slightly harder than average - 22% Hard vs 18% across all companies. 56% 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 Attentive coding interview?add

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

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

Simulate a Attentive interview with AIarrow_forward