Dataford
Interview QuestionsInterview GuidesExperiencesMock InterviewsPricing
Get started

Reverse Greenhouse Candidate String

Easy
EasyCodingRecursionArraysStringsAsked 1 times

Problem

In Greenhouse Software, text from a candidate note or job post may need simple character-level transformation. Write a function that takes a string and returns the same string with its characters in reverse order.

Formal Specification

  • Input: a string s
  • Output: a string containing the characters of s in reverse order

Your function should preserve all characters exactly as they appear, including spaces, punctuation, and digits.

Constraints

  • 0 <= len(s) <= 10^5
  • s may contain letters, digits, spaces, and punctuation
  • Return a new reversed string

Function Signature

def reverse_string(s):
Practicing as: Engineering Manager interview at Greenhouse Software

Hi, I'll play your Greenhouse Software interviewer for the Engineering Manager role. Candidates describe these interviews as mostly positive and moderately difficult, so expect me to be friendly and conversational. Take your time with the question above and answer like we're in the room.

Take this as a live interview session →

You are practicing as a guest. Sign up free to run your code against the sample data. Your draft stays right here.

Sign up freeI have an account
def solve(rows):
    counts = {}
    for row in rows:
        ...
    return result
Sign up to unlock solutions
Greenhouse Software Engineering Manager Interview QuestionsGreenhouse Software Interview Questions
Next questions
IDEOReverse Characters in a StringEasyAIG PC Global ServicesReverse Claim Notes StringEasyZumperReverse Zumper Search StringEasy