1p3a Question · Oct 2025

Meta Software Engineer Online Assessment Sample Questions

9 upvotes 5 replies

Question Details

This is the original Meta English Online Assessment (OA) question set. There are four questions in total, with an increasing difficulty level. Like and give me rice (points) to share the remaining two

Full Details

This is the original Meta English Online Assessment (OA) question set. There are four questions in total, with an increasing difficulty level. Like and give me rice (points) to share the remaining two questions. 1. Imagine you are developing a tool for authors that helps them analyze their writing patterns to enhance consistency. One feature of this tool involves examining the structure of words within a text. You are given a string text that represents a sequence of words consisting of English letters (both uppercase and lowercase) separated by spaces. Your task is to find all words in the string that start and end with the same letter, considering that the letter may appear in different cases (e.g., a word may start with an 'a' and end with an 'A').

Return the number of such words as an integer.

Note: You are not expected to provide the most optimal solution, but a solution with time complexity not worse than O(text.length) will fit within the execution time limit. 2. Given a string word, you can reverse the order of some characters from the beginning or from the end of word to get new strings. Your task is to iterate over all possible new strings that can be formed this way, and return the alphabetically smallest one.

Note: You are not expected to provide the most optimal solution, but a solution with time complexity not worse than o(word. length³) will fit within the execution time limit.

About This Question

This is a reported interview question from a meta interview for a swe role during the oa round reported in 2025.

It covers the following topics: Strings .

Topics