H&M · Software Engineer
Updated · 2026-10-02

H&M Software Engineer
Interview Guide

THE 60-SECOND BRIEF

As a Software Engineer at H&M, you are at the intersection of global-scale retail and cutting-edge technology. You are not just writing code; you are building the digital backbone that powers one of the world's most recognizable fashion brands. Your work influences how millions of customers interact with products, manage their orders, and experience the brand across both physical stores and digital storefronts. This role is critical to H&M’s ongoing digital transformation. You will contribute to complex, high-traffic systems that demand both stability and innovation. Whether you are optimizing backend services, refining UI components, or developing scalable architecture, your contributions directly impact the efficiency of global operations and the quality of the customer journey.

This guide is scoped to a Software Engineer candidate at H&M.

H&M candidates report 4 rounds over 3-5 weeks. The stages below are what candidates describe, not a published process.

OOP (Object-Oriented Programming)Coding Interviews (Problem Solving)Data Structures & Algorithms (DSA)

20 min read

Browse Software Engineer questions

See the practice prompts

18Practice promptsAcross five skill areas

As a Software Engineer at H&M, you are at the intersection of global-scale retail and cutting-edge technology. You are not just writing code; you are building the digital backbone that powers one of the world's most recognizable fashion brands. Your work influences how millions of customers interact with products, manage their orders, and experience the brand across both physical stores and digital storefronts. This role is critical to H&M’s ongoing digital transformation. You will contribute to complex, high-traffic systems that demand both stability and innovation. Whether you are optimizing backend services, refining UI components, or developing scalable architecture, your contributions directly impact the efficiency of global operations and the quality of the customer journey. You will work within diverse, collaborative teams that value both technical excellence and a deep understanding of the fashion-tech ecosystem.

01

Initial Vetting

reported

Candidates may undergo online aptitude and coding assessments.

What to demonstrate

  • Candidates may undergo online aptitude and coding assessments
  • Depth in OOP (Object-Oriented Programming)

How to prepare

  • Answer aloud and timed: How would you explain OOP concepts and provide a practical code example?
  • Answer aloud and timed: Can you solve coding challenges involving string manipulation, arrays, or loops?
H&M Software Engineer candidate reports ↗
02

HR Interview

reported

An interview focusing on cultural fit and general background.

What to demonstrate

  • An interview focusing on cultural fit and general background
  • Depth in OOP (Object-Oriented Programming)

How to prepare

  • Answer aloud and timed: What is your experience with Java, JavaScript, React, or Node.js?
  • Answer aloud and timed: How do you approach the logic for finding the second-largest element in an array?
H&M Software Engineer candidate reports ↗
03

Technical Interviews

reported

A series of interviews with technical leads assessing technical capabilities.

What to demonstrate

  • A series of interviews with technical leads assessing technical capabilities
  • Depth in OOP (Object-Oriented Programming)

How to prepare

  • Answer aloud and timed: Can you explain how to solve a palindrome string challenge?
  • Answer aloud and timed: Describe a difficult day at work—what caused it and how did you manage it?
H&M Software Engineer candidate reports ↗
04

Management Interview

reported

Final interview with management to evaluate overall fit and alignment.

What to demonstrate

  • Final interview with management to evaluate overall fit and alignment
  • Depth in OOP (Object-Oriented Programming)

How to prepare

  • Answer aloud and timed: How do you handle conflict in the workplace?
  • Answer aloud and timed: What qualities do you value most in a team, and what strengths do you bring?
H&M Software Engineer candidate reports ↗

PracHub editorial advice for the preparation topics above.

01

Prepare for the "Resume Grind

Be prepared to explain every single project and technical choice listed on your resume. If you list a technology, expect to be asked about it in detail.

02

Practice Your Stories

Use the STAR method (Situation, Task, Action, Result) for behavioral questions. This keeps your answers structured and easy for the interviewer to follow.

03

Ask Thoughtful Questions

Use your time at the end of the interview to ask about the team's challenges or the company's tech roadmap. This shows engagement and strategic thinking.

Choose a category, try a prompt, then open its approach, worked solution or follow-up when you need it.

12 technical prompts0 include a worked solution

How do you approach the logic for finding the second-largest element in an array?

medium
Technical and Domain Proficiency

How do you approach the logic for finding the second-largest element in an array?

Approach
  1. Restate the input: its shape, its size, and what is guaranteed about it.
  2. Name the brute-force solution and its complexity before improving on it.
  3. Choose the data structure from the access pattern, not from familiarity.
  4. State the target complexity and say which constraint rules the naive version out.
Follow-up
  • How does this change if the input no longer fits in memory?
  • What is the worst case, and how likely is it on real data?

Collapse a redelivered event batch into per-aggregate high-water marks

easy
hashingat-least-onceaggregation

You drain a batch of up to 5,000,000 events, each (aggregate_id BIGINT, aggregate_version INT, event_type, payload). The log guarantees order within one aggregate only; the batch merges 64 partitions, and a relay failover has redelivered a range, so an older version for an aggregate can appear after a newer one. Given a map of last_applied_version per aggregate, produce the events worth applying, at most one per (aggregate_id, version), plus the count discarded. Target O(n) time. State the memory for 2,000,000 distinct aggregates and what you do when it does not fit.

Approach
  1. One pass, one hash map from aggregate_id to the highest version kept, and a discard counter. An event whose version is at or below last_applied_version for its aggregate is dropped without further work, which is the whole reason the event carries its version rather than a delta. O(n) expected time, O(d) space in distinct aggregates.
  2. Keep the maximum, never the last occurrence. The redelivered range means the final appearance of an aggregate in the batch can be an older version than one seen earlier in the same batch, so last-wins applies stale state over newer state and the projection regresses with no error anywhere.
  3. Cost the memory instead of calling it large: an 8-byte key plus a 4-byte version is 12 bytes of payload, and an open-addressed table held at a 0.7 load factor costs roughly 17 bytes per entry before per-slot metadata, so 2,000,000 aggregates is tens of megabytes in a native layout and several times that in a runtime that boxes both key and value.
  4. If the distinct set exceeds memory, partition on hash(aggregate_id) mod P and reduce each partition independently. Every event for one aggregate hashes to the same partition, so the per-partition result is exact and the merge is concatenation rather than a second reduction.
Follow-up
  • The payload is a patch rather than a snapshot, so applying only the highest version loses the intermediate changes. What changes in your reduction?
  • How do you detect that version 7 arrived while version 6 was never delivered, and what should the consumer do about the gap?

Merge partitioned event streams into one ordered feed with bounded lateness

hard
k-way mergewatermarksout-of-order streams

The read-model service consumes 64 log partitions carrying about 4,000 events per second in total. Each partition is ordered within itself, but partitions drift by up to 30 seconds, and the activity feed must present a tenant's events in occurred_at order. Produce the merge. State its complexity, the buffer it requires in events and in bytes, what happens when one partition is idle, and what you do with an event that arrives after you have already emitted its position. Payloads average 1 KB.

Approach
  1. Merge with a min-heap over the 64 partition heads keyed on (occurred_at, event_id): O(log P) per event and O(n log P) overall. The tie-break on event_id is what makes the output deterministic when two partitions carry the same millisecond, which matters because the feed is paginated and a non-deterministic order reorders pages under the reader.
  2. Emitting the heap head is only correct once every partition has produced everything up to that timestamp, so the emit condition is a watermark: the minimum across partitions of the highest occurred_at seen, less the allowed lateness. Events are held until the watermark passes them, which is what turns individually ordered streams into a jointly ordered one.
  3. Size the buffer from the lateness rather than guessing: 4,000 events per second times 30 seconds is 120,000 buffered events, and at 1 KB each about 120 MB of heap. That number is the real price of the ordering guarantee and belongs in front of whoever asked for it.
  4. Handle the idle partition explicitly, because it fails the feed rather than corrupting it: a partition with no traffic never advances its own maximum, so the watermark freezes and output stops entirely. Either every partition emits a periodic idle marker carrying the broker's current time, or the watermark falls back to wall clock for a partition silent beyond a threshold.
Follow-up
  • The lateness budget is raised to five minutes. What is the new buffer, and what besides memory changes?
  • The consumer restarts. Where does it resume from, and what does the feed look like for the first 30 seconds?

Built from the rounds and topics H&M candidates report.

Small steps. Visible outcomes.0 / 7 completed
ONE WEEK · YOUR PACE

Prepare, practise & reflect

One practical outcome each day. Spend longer where you need it.

0 / 7 done
01Map the H&M loop
  • Write out the reported sequence: Initial Vetting, HR Interview, Technical Interviews, Management Interview.
  • For each round, write one sentence on what it is judging, from the description above, and mark the one you are least ready for.

Deliverable: A one-page map of the 4 reported rounds, with the weakest marked.

02Work OOP (Object-Oriented Programming)
  • Spend the session on OOP (Object-Oriented Programming), which H&M candidates report being tested on.
  • Write one worked example in OOP (Object-Oriented Programming) and time yourself on it.

Deliverable: One timed worked example in OOP (Object-Oriented Programming).

03Work Coding Interviews (Problem Solving)
  • Spend the session on Coding Interviews (Problem Solving), which H&M candidates report being tested on.
  • Write one worked example in Coding Interviews (Problem Solving) and time yourself on it.

Deliverable: One timed worked example in Coding Interviews (Problem Solving).

04Work Data Structures & Algorithms (DSA)
  • Spend the session on Data Structures & Algorithms (DSA), which H&M candidates report being tested on.
  • Write one worked example in Data Structures & Algorithms (DSA) and time yourself on it.

Deliverable: One timed worked example in Data Structures & Algorithms (DSA).

05Answer out loud: Technical and Domain Proficiency
  • Answer aloud, timed: How would you explain OOP concepts and provide a practical code example?
  • Answer aloud, timed: Can you solve coding challenges involving string manipulation, arrays, or loops?

Deliverable: Spoken answers to 2 reported Technical and Domain Proficiency question(s), under time.

06Answer out loud: Behavioral and Leadership
  • Answer aloud, timed: Describe a difficult day at work—what caused it and how did you manage it?
  • Answer aloud, timed: How do you handle conflict in the workplace?

Deliverable: Spoken answers to 2 reported Behavioral and Leadership question(s), under time.

07Answer out loud: Situational and Strategy
  • Answer aloud, timed: Why are you the right person for this specific role?
  • Answer aloud, timed: How do you maintain your energy and focus during high-pressure periods?

Deliverable: Spoken answers to 2 reported Situational and Strategy question(s), under time.

Expand any day for tasks and deliverables. Your progress is saved on this device.

Behavioural rounds judge the decision you made and what it cost.

What is your experience with Java, JavaScript, React, or Node.js?

medium
Technical and Domain Proficiency

What is your experience with Java, JavaScript, React, or Node.js?

Approach
  1. Pick a story where you made the decision, not one where you watched it.
  2. State the situation in two sentences and spend the rest on the reasoning.
  3. Give the blast radius: what could have broken, and what you measured.
  4. Name the disagreement and how you resolved it with evidence.
Follow-up
  • What would you do differently if you ran that again?
  • How did you know your change caused the improvement?

Describe a difficult day at work—what caused it and how did you manage it?

medium
Behavioral and Leadership

Describe a difficult day at work—what caused it and how did you manage it?

Approach
  1. Pick a story where you made the decision, not one where you watched it.
  2. State the situation in two sentences and spend the rest on the reasoning.
  3. Give the blast radius: what could have broken, and what you measured.
  4. Name the disagreement and how you resolved it with evidence.
Follow-up
  • What would you do differently if you ran that again?
  • How did you know your change caused the improvement?

How do you handle conflict in the workplace?

medium
Behavioral and Leadership

How do you handle conflict in the workplace?

Approach
  1. Pick a story where you made the decision, not one where you watched it.
  2. State the situation in two sentences and spend the rest on the reasoning.
  3. Give the blast radius: what could have broken, and what you measured.
  4. Name the disagreement and how you resolved it with evidence.
Follow-up
  • What would you do differently if you ran that again?
  • How did you know your change caused the improvement?

What qualities do you value most in a team, and what strengths do you bring?

medium
Behavioral and Leadership

What qualities do you value most in a team, and what strengths do you bring?

Approach
  1. Pick a story where you made the decision, not one where you watched it.
  2. State the situation in two sentences and spend the rest on the reasoning.
  3. Give the blast radius: what could have broken, and what you measured.
  4. Name the disagreement and how you resolved it with evidence.
Follow-up
  • What would you do differently if you ran that again?
  • How did you know your change caused the improvement?

How do you manage projects that involve multiple stakeholders?

medium
Behavioral and Leadership

How do you manage projects that involve multiple stakeholders?

Approach
  1. Pick a story where you made the decision, not one where you watched it.
  2. State the situation in two sentences and spend the rest on the reasoning.
  3. Give the blast radius: what could have broken, and what you measured.
  4. Name the disagreement and how you resolved it with evidence.
Follow-up
  • What would you do differently if you ran that again?
  • How did you know your change caused the improvement?

What motivates you to work specifically in the fashion industry?

medium
Behavioral and Leadership

What motivates you to work specifically in the fashion industry?

Approach
  1. Pick a story where you made the decision, not one where you watched it.
  2. State the situation in two sentences and spend the rest on the reasoning.
  3. Give the blast radius: what could have broken, and what you measured.
  4. Name the disagreement and how you resolved it with evidence.
Follow-up
  • What would you do differently if you ran that again?
  • How did you know your change caused the improvement?
  • 01

    What is your experience with Java, JavaScript, React, or Node.js?

  • 02

    Describe a difficult day at work—what caused it and how did you manage it?

  • 03

    How do you handle conflict in the workplace?

  • 04

    What qualities do you value most in a team, and what strengths do you bring?

PracHub preparation framework ↗
How long does the hiring process typically take?

The process can vary significantly depending on the team and location. While some candidates move through the stages in a few weeks, others may experience a longer timeline due to team-specific requirements or organizational changes.

H&M Software Engineer candidate reports ↗
What can I do to stand out?

Successful candidates demonstrate a genuine interest in the intersection of fashion and technology. Beyond technical skill, show that you understand the business impact of the software you build and that you are a collaborative team player.

H&M Software Engineer candidate reports ↗
How difficult are the technical assessments?

The technical rounds are generally considered "average" in difficulty, focusing on fundamental concepts rather than obscure theory. Refreshing your knowledge of basic data structures and coding logic is usually sufficient.

H&M Software Engineer candidate reports ↗
Is the culture collaborative?

Yes, H&M emphasizes a supportive and professional environment. Interviewers are often described as kind and friendly, and they value candidates who can communicate their thought process clearly and respectfully.

H&M Software Engineer candidate reports ↗
What topics does H&M test in interviews?

H&M interviews most often cover Stakeholder Management, Stakeholder Collaboration, Conflict Resolution, Behavioral Interviewing, and Stress Management. The exact emphasis depends on the specific role you apply for.

H&M Software Engineer candidate reports ↗
Sources & methodology 3 sources ↗

No official company page is cited. Rounds and questions come from candidate reports and PracHub editorial material; each source shows the date it was read.