InterviewLegend

Strings and Characters

Alex Chen40 min readUpdated 86 real interview reports

Short string questions are the most common coding prompt at Workday. They come up on phone screens and in campus rounds, often in Java on a shared doc. Each answer fits in about a dozen lines, and then the interviewer asks for it again with less memory, or without the library call you used.

Two tools cover all six problems here. One is a count array with 26 slots, which stays constant space because the alphabet never grows. The other is a pair of indexes that start at the two ends, or one index per string reading from the back. A Java String can't change, so in place always means working on a char[].

Test the empty string and a one-letter string before anything long. Those two inputs break more of these answers than any big case.

WorkdayPremium lesson · Coding round

The 6 Workday problems are below.

  1. A Premium questionCoding · Easy · Signature problem
  2. A Premium questionCoding · Easy · Signature problem
  3. A Premium questionCoding · Easy · Frequently asked

+ 3 more in this lesson

Each with hints, the follow-up and a tested solution.

Get the Workday questions

$49 a year · all 100 companies · cancel anytime

From 20,000+ candidate reports, forum threads behind logins and write-ups in Chinese.

Had your Workday interview?Tell us what they asked. Reviewed before it goes in, never with your name.
Workday interview guide

Know what Workday asks before you walk in.

31 coding · 3 system design · 15 behavioral questions

Get Premium$49 a year · Cancel anytime
Or start freeNo card.

Get their questions first.

InterviewLegend is independent and not affiliated with or endorsed by any company it covers.