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

 

numVworthy


V_worthy problem .. given a non-empty array of Strings called wordsList, return the number of Strings that are V_worthy (a V_worthy String has a "v" in it and the Strings immediately before and after in the array do not have a "w". All words are all lowercase.


numVworthy(["va", "va", "wa", "wa", "va", "va"]) → 2
numVworthy(["va", "wa", "va"]) → 0
numVworthy(["va", "aa", "va", "aa", "va", "aa"]) → 3

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

public int numVworthy(String wordsList[]) { }

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

Copyright Nick Parlante 2017 - privacy