Match the given string based on first two characters on each string.

For example

 A='harsa';
 b='harish'; result '1' 

The two strings are not equal but match the starting two characters 'ha'.

Solution Stats

539 Solutions

299 Solvers

Last Solution submitted on Jan 23, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Problem Recent Solvers299

Suggested Problems

More from this Author13

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!