The following function is stripping (removing) all the characters in string stripChars from the end of the string str? The function is incomplete. What code should be there in place of the comment? public static String stripEnd(final String str, final String stripChars) { if (str == null) return str; int end = str.length(); int INDEX_NOT_FOUND = -1; if(end == 0) return str; else if (stripChars.isEmpty()) { return str; } else { // ********************* // What's the code here? // ********************* } return str.substring(0, end); } while (end != 0 && str.indexOf(stripChars.charAt(end - 1)) == INDEX_NOT_FOUND) { end++; } while (end != 0 && str.indexOf(stripChars.charAt(end - 1)) != INDEX_NOT_FOUND) { end--; } while (end != 0 && stripChars.indexOf(str.charAt(end - 1)) != INDEX_NOT_FOUND) { end--; } while (end != 0 && stripChars.indexOf(str.charAt(end - 1)) == INDEX_NOT_FOUND) { end++; }
Android Developers Interview Questions
10,271 android developers interview questions shared by candidates
Technical rounds: Java questions - interface, arraylist, hashmap etc. Android - lifecycle, services, third party libraries etc. Culture round: few questions about Mindvalley (get to know the core of Mindvalley), various random cultural questions put forward for my response.
what is MVP
1. Android components 2. App lifecycle. 3. Design pattern
Given a dictionary of English words, write a function that will determine whether a string is an English sentence, i.e. whether that string is constructed of english words.
THE SUN RISE IN EAST Print the above sentence with out duplicating chars ?
Name the different stages of an android activity.
What is Dependency injection
Simple questions you would find in Cracking the Coding Interview
Viewing 41 - 50 interview questions