16 questions · from 5 interviews
Thoughtworks interview questions
Every question candidates reported from their Thoughtworks interviews, most frequently asked first. Each links to the write-up it came from, so you can see the round and how it went.
Thoughtworks coding and DSA questions
- 01
Greatest Common Divisor of Strings
Given two strings str1 and str2, return the largest string x such that x divides both str1 and str2. A string x divides string s if and only if s can be formed by concatenating x with itself one or more times.
Easy · From Thought work | Interview Experience| Application developer
- 02
Valid Anagram
Given two strings s and t , return true if t is an anagram of s , and false otherwise. An Anagram is a word or phrase formed by rearranging the letters of a different word or phrase, typically using all the original letters exactly once.
Easy · From ThoughtWorks | Graduate application developer | India | Nov 2024 [Offer]
- 03
Find First and Last Position of Element in Sorted Array
Given an array of integers nums sorted in non-decreasing order, find the starting and ending position of a given target value. If target is not found in the array, return [-1, -1] . You must write an algorithm with O(log n) runtime complexity.
Medium · From ThoughtWorks | Graduate application developer | India | Nov 2024 [Offer]
- 04
Display Cost of Last Week Storage
DISPLAY COST OF LAST WEEK STORAGE Description As an electricity consumer, I want to be able to view my usage cost of the last week so that I can monitor my spending Acceptance Criteria: - Given I have a smart meter ID with price plan attached to it and usage…
From ThoughtWorks | Senior Consultant | Gurugram | July 2023 [Offer]
- 05
View Separate Gas and Electricity Usage and Cost
As an electricity consumer I want to view the usage of my gas and electricity separately so that I can decide if separate tariffs for each type of energy will save me money Acceptance Criteria: Given I have a smart meter ID when I connect and then I send…
From ThoughtWorks | Senior Consultant | Gurugram | July 2023 [Offer]
- 06
Design Classes for Distance Values with Various Metrics
Design classes and structure them in such a way that we can use them to store distance values. Values could measure in any metrics like kilometers, miles, meters, centimeters, millimeters etc.
From ThoughtWorks | Senior Consultant | Gurugram | July 2023 [Offer]
- 07
Sort Binary Array
Given an array containing only 0s and 1s, sort the array in-place.
Easy · From ThoughtWorks | Application Developer | India | May 2022 [Offer]
- 08
Two Number Product
Given an array of integers and a target product K , find two numbers in the array whose product is equal to K . This question is analogous to the LeetCode Two Sum problem.
Medium · From ThoughtWorks | Application Developer | India | May 2022 [Offer]
- 09
Implement Custom Singly Linked List with Reversal
I was asked to create my own singly linked list from scratch, including methods to add data. Following that, I had to implement a function to reverse the linked list. The entire code needed to be written on my favorite IDE.
Medium · From ThoughtWorks | Application Developer | India | Sept 2021 [Offer]
- 10
Implement Queues using Stacks and Stacks using Queues
I was challenged to implement a Queue data structure using only Stacks, and then, conversely, implement a Stack data structure using only Queues. I had to write the full code for both implementations.
Medium · From ThoughtWorks | Application Developer | India | Sept 2021 [Offer]
Thoughtworks system design questions
- 01
Ride Sharing Application Design
Design a Ride Sharing Application. Discuss features, identify entities, classes, attributes, functions, relationships, high-level view, and ER diagram. Be prepared to discuss data structures used, why they were chosen, and potential optimizations.
From Thought work | Interview Experience| Application developer
- 02
E-commerce Website Case Study (Entity-Relationship Design)
I was presented with a case study for an e-commerce website and asked to identify key entities and define their relationships within the system.
From ThoughtWorks | Graduate application developer | India | Nov 2024 [Offer]
- 03
Customized OTT Plans Design
As a smart OTT company, we want to offer customized OTT plans for our customers so that the customers should be able to choose to build their plan by choosing different streaming platforms and how many viewing hours they want for each of them. We do support…
Medium · From ThoughtWorks | Application Developer | India | May 2022 [Offer]
Thoughtworks behavioural and HR questions
- 01
Propose Initiatives for Social Change
The interviewers asked me to think of three things I would like to do to make change in the world and discuss them.
From ThoughtWorks | Senior Consultant | Gurugram | July 2023 [Offer]
Thoughtworks other questions
- 01
SQL Queries for E-commerce Case Study
Based on the e-commerce website case study and the identified entities and relationships, I was asked to write SQL queries to retrieve specific information.
From ThoughtWorks | Graduate application developer | India | Nov 2024 [Offer]
- 02
Java Exception Handling Return Value
Given the following Java code snippet, what will the ans() method return? public static int ans(){ try { System.out.println("Inside try block"); return 1; } catch(Exception ex) { System.out.println("Exception caught in catch block"); return 2; } finally {…
From ThoughtWorks | Application Developer | India | May 2022 [Offer]
Thoughtworks interview questions FAQ
What questions are asked in Thoughtworks interviews?
Candidates reported 16 distinct questions across 5 Thoughtworks interviews. 10 coding and DSA questions, 3 system design questions, 1 behavioural and HR questions, 2 other questions.
How difficult are Thoughtworks interview questions?
Of the questions candidates rated, 38% were easy, 63% medium and 0% hard.