Add office photos
ThoughtWorks logo
Employer?
Claim Account for FREE

ThoughtWorks

3.9
based on 520 Reviews
Video summary
Filter interviews by
Software Engineer
Clear (1)

10+ ThoughtWorks Software Engineer Interview Questions and Answers

Updated 17 Jan 2025

Q1. Remove Character from String Problem Statement

Given a string str and a character 'X', develop a function to eliminate all instances of 'X' from str and return the resulting string.

Input:

The first line contai...read more
Ans.

Develop a function to remove all instances of a given character from a string.

  • Iterate through the string and build a new string excluding the specified character.

  • Use a StringBuilder or similar data structure for efficient string manipulation.

  • Handle edge cases such as empty string or character not found in the input string.

Add your answer
right arrow

Q2. Boundary Sum Problem Statement

Given a Binary Tree with 'N' nodes, compute and return the sum of all its boundary nodes. The boundary nodes include the root node, leftmost external nodes, rightmost external nod...read more

Ans.

The Boundary Sum Problem involves calculating the sum of boundary nodes in a binary tree.

  • Traverse the tree in a specific order to identify the boundary nodes (root, leftmost, rightmost, and leaves)

  • Keep track of the sum of these boundary nodes as you traverse the tree

  • Handle cases where nodes have no children (-1)

Add your answer
right arrow

Q3. Complete String Problem Statement

Given an array of strings A of size N, determine the longest complete string. A string is deemed complete if every prefix of the string also appears in the array. If multiple s...read more

Ans.

Find the longest complete string in an array of strings, where every prefix of the string also appears in the array.

  • Iterate through each string in the array and check if all its prefixes exist in the array.

  • Keep track of the longest complete string found so far, and return the lexicographically smallest one if multiple exist.

  • If no complete string is found, return 'None'.

Add your answer
right arrow

Q4. Anagram Pairs Verification Problem

Your task is to determine if two given strings are anagrams of each other. Two strings are considered anagrams if you can rearrange the letters of one string to form the other...read more

Ans.

Determine if two strings are anagrams of each other by checking if they contain the same characters.

  • Create character frequency maps for both strings and compare them.

  • Sort both strings and compare if they are equal.

  • Use a hash table to store character counts and check if they are the same for both strings.

Add your answer
right arrow
Discover ThoughtWorks interview dos and don'ts from real experiences

Q5. Segregate Odd-Even Problem Statement

In a wedding ceremony at NinjaLand, attendees are divided into two groups: bride’s side and groom’s side. Attendees from the bride’s side hold odd numbers, while those from ...read more

Ans.

Rearrange attendees from bride's side and groom's side while maintaining original order within each group.

  • Iterate through the linked list and separate odd and even numbers into two separate lists.

  • Merge the two lists while maintaining the original order within each group.

  • Output the rearranged linked list with bride's side attendees followed by groom's side attendees.

Add your answer
right arrow

Q6. Tell me about OOPS - Explain modular code

Ans.

OOPS is a programming paradigm that uses objects to represent real-world entities. Modular code is code that is divided into separate, independent parts.

  • OOPS stands for Object-Oriented Programming System

  • It focuses on creating reusable code and reducing complexity

  • Modular code is easier to maintain, test, and debug

  • It involves breaking down code into smaller, self-contained modules

  • Each module performs a specific task and can be easily replaced or updated

  • For example, a modular co...read more

Add your answer
right arrow
Are these interview questions helpful?

Q7. Tell which tech stack you’d use for which case

Ans.

For web development, I'd use MERN stack. For mobile development, I'd use React Native. For data analysis, I'd use Python stack.

  • MERN stack (MongoDB, Express.js, React.js, Node.js) for web development

  • React Native for mobile development

  • Python stack (NumPy, Pandas, Matplotlib) for data analysis

  • Consider the project requirements and scalability before choosing a tech stack

Add your answer
right arrow

Q8. What do you think about affirmative action

Ans.

Affirmative action is a complex issue with both pros and cons.

  • Affirmative action can help promote diversity and equal opportunities for underrepresented groups.

  • However, it can also lead to reverse discrimination and undermine merit-based hiring practices.

  • Ultimately, the effectiveness of affirmative action depends on how it is implemented and monitored.

  • For example, some companies may set quotas for hiring certain groups, while others may focus on outreach and training programs...read more

Add your answer
right arrow
Share interview questions and help millions of jobseekers 🌟
man with laptop

Q9. In which programming language you are good at?

Ans.

I am proficient in Java and Python.

  • Strong understanding of object-oriented programming concepts

  • Experience with Java frameworks such as Spring and Hibernate

  • Proficient in Python libraries such as NumPy and Pandas

Add your answer
right arrow

Q10. Write a program to print HCF of numbers as output

Ans.

Program to print HCF of numbers as output

  • Take input of two numbers from user

  • Find the smaller number between the two

  • Run a loop from 1 to the smaller number

  • Check if both numbers are divisible by the current loop variable

  • If yes, update the HCF variable

  • Print the HCF as output

Add your answer
right arrow

Q11. explain cloud concepts

Ans.

Cloud concepts refer to the delivery of computing services over the internet, including storage, databases, networking, and more.

  • Cloud computing allows users to access and use resources on-demand over the internet.

  • It provides scalability, flexibility, and cost-efficiency compared to traditional on-premises solutions.

  • Examples include Amazon Web Services (AWS), Microsoft Azure, and Google Cloud Platform.

Add your answer
right arrow

More about working at ThoughtWorks

Back
Awards Leaf
AmbitionBox Logo
#2 Best IT/ITES Company - 2022
Awards Leaf
HQ - Chicago, Illinois, United States (USA)
Contribute & help others!
Write a review
Write a review
Share interview
Share interview
Contribute salary
Contribute salary
Add office photos
Add office photos

Interview Process at ThoughtWorks Software Engineer

based on 5 interviews
1 Interview rounds
Coding Test Round
View more
interview tips and stories logo
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Software Engineer Interview Questions from Similar Companies

Nagarro Logo
4.0
 • 14 Interview Questions
Temenos Logo
3.2
 • 10 Interview Questions
InMobi Logo
3.5
 • 10 Interview Questions
View all
Recently Viewed
SALARIES
Avalara Technologies
REVIEWS
Avalara Technologies
No Reviews
SALARIES
Avalara Technologies
INTERVIEWS
Winjit Technologies
No Interviews
INTERVIEWS
Tudip Technologies
No Interviews
LIST OF COMPANIES
Discover companies
Find best workplace
COMPANY BENEFITS
Toyota Industries Engine India
No Benefits
JOBS
Avalara Technologies
No Jobs
SALARIES
Avalara Technologies
INTERVIEWS
Capgemini
No Interviews
Share an Interview
Stay ahead in your career. Get AmbitionBox app
play-icon
play-icon
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
75 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter