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

 

jebbert@volusia.k12.fl.us > quiz2021_10_04_HL_cool
prev  |  next  |  chance

Write a method that returns how many different strings can be made from rearranging the letters in the input parameter string. As preconditions, you may assume that the string will contain at least one character, that there will be no repeated characters, the string will have no more than ten characters, and that the string will only contain lower-case letters. For example, "abc" has six different arrangements possible: "abc", "acb", "bac", "bca", "cab", and "cba". Look at the test data for more examples.


quiz2021_10_04_HL_cool("abc") → 6
quiz2021_10_04_HL_cool("r") → 1
quiz2021_10_04_HL_cool("xy") → 2

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

public int quiz2021_10_04_HL_cool(String str) { }

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: 290

Copyright Nick Parlante 2017 - privacy