# Class Field Trip

## Question

{% embed url="<https://open.kattis.com/problems/classfieldtrip>" %}

## Solution

### Idea

This is a classic **string manipulation**. Since the given two strings are in alphabetical order already. So we just need to use **three** variables to mark the processed character, and the logic is shown [below](#code)

{% hint style="info" %}
The test cases will include the situation when the input contains **exactly** 100 valid lowercase characters.
{% endhint %}

### Code

{% @github-files/github-code-block url="<https://github.com/mendax1234/Coding-Problems/blob/main/kattis/classfieldtrip/classfieldtrip.c>" %}
