WEATHERFORD Hiring | Online Assessment Interview Question | Off-Campus (2024)
Question · Posted Jun 2026
Q1: Rearrange Characters to Make Target String Problem Statement Given two strings s and target, return the maximum number of copies of target that can be formed using the characters of s. Each character in s can be used at most once for each copy of the target. Example Input s = "ilovecodingonleetcode" target = "code" Output 2 Constraints 1 <= s.length <= 100 1 <= target.length <= 10
The full answer & interview discussion are available to premium members.
Log in Create a free account