Letter Construction
Lesson 2 of 3 in Coddy's Interview Coding Challenges - Pack V course.
Challenge
MediumWrite a function isConstructable which gets two strings, s1 and s2, and returns true if s1 can be constructed using the letters from s2 or false otherwise.
Example:
Input - "aab", "bcaa"
Expected Output - true
Explanation - "bcaa" contains all the letters from "aab"
Try it yourself
#include <stdbool.h>
#include <string.h>
bool isConstructable(char* s1, char* s2) {
// Write code here
}