id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

getSimilars


Given 3 strings, compare the all corresponding characters of all 3 strings and return similar characters at the similar indexs. The length of the strings could be different.
Hint: since you don't know the length of strings you should use loop.


getSimilars("ab", "ab", "ab") → "ab"
getSimilars("ab", "ac", "ad") → "a"
getSimilars("a", "ab", "abc") → "a"

...Save, Compile, Run (ctrl-enter)

public String getSimilars(String s1, String s2, String s3) { }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Difficulty: 210

Copyright Nick Parlante 2017 - privacy