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

 

amjadm@miamioh.edu assignment3part1 > countSimilarChars
prev  |  next  |  chance

Given 3 strings that are not the same length, compare the all corresponding characters of all 3 strings and count the number of times that all three strings have the same character at the same index.


countSimilarChars("ab", "ab", "ab") → 2
countSimilarChars("ab", "ac", "ad") → 1
countSimilarChars("a", "ab", "abc") → 1

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

public int countSimilarChars(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