1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
weeeeeb [17]
3 years ago
5

Write a function called has_duplicates that takes a string parameter and returns true if the string has any repeated characters.

Otherwise, it should return false.
SAT
1 answer:
larisa86 [58]3 years ago
4 0

The function to solve the algorithm that is required to return Boolean (True of False) if the parameter contains duplicate character will be implemented using the Kotlin Programming Language.

// Here is the algorithm

<em>fun</em><em> has_duplicates</em><em> (</em><em>parameter</em><em>: String) : Boolean{</em>

<em>for (i in parameter.size-1){</em>

<em>if(parameter[i]==parameter[i+1]){</em>

<em>return true</em>

<em>} else{</em>

<em>return false</em>

<em>}</em>

<em>}</em>

<em>}</em>

Learn more about Algorithm and Data structure Here:

brainly.com/question/24268720

You might be interested in
The random variable x has a normal distribution with mean 10 and standard deviation 6
Colt1911 [192]

Answer:

10-3×(6×-2)

Explanation:

i think its wrong im not sure but i give my all best in my answer

SO PLEASS MARK ME AS BRAINLIEST ANSWER

3 0
3 years ago
1) What percent of 440 is 369?
zimovet [89]

Answer:

119.24

Explanation:

Step 1: We make the assumption that 369 is 100% since it is our output value.

Step 2: We next represent the value we seek with x​.

Step 3: From step 1, it follows that 100%=36​.

Step 4: In the same vein, x% = 440​.

Step 5: This gives us a pair of simple equations:100%=369(1) 440(2) = x%

Step 6: By simply dividing equation 1 by equation 2 and taking note of the fact that both the LHS(left hand side) of both equations have the same unit (%); we have 100%/x% = 369/440

Step 7: Taking the inverse (or reciprocal) of both sides yields x%/100% = 440/369

Therefore, 440​ is 119.24% of 369.

4 0
2 years ago
Guys pls help me!!!!!!!!
Zarrin [17]
You just have to put what you think on how much time you spend on the TV and stuff like for sleeping be like 300 min or 420 minutes you know,, and for homework you would be like 180 minutes
3 0
3 years ago
Chad drank 2/3 liter of water Monday before going jogging. He drank 3/4 liter of water after his jog. How much water did chad dr
Nata [24]

Answer:

15/12

Explanation:

4 0
3 years ago
Read 2 more answers
If 5.37 grams of sucrose, c12h22o11, are dissolved in 21.2 grams of water, what will be the boiling point of the resulting solut
WARRIOR [948]

Answer:

c

Explanation:

3 0
2 years ago
Other questions:
  • ¿Por qué la Guerra Fría se llamo como tal? ¿Cuándo comenzó?
    6·1 answer
  • (Old Yeller) Which character is described as shiftless? A. Lisbeth Searcy B. Burn Sanderson C. little Arliss D. Bud Searcy
    15·1 answer
  • You're hoping to receive federal funds for your child care center. According to Title XX of the Social Security Act, you must A.
    14·1 answer
  • Qual é a diferença entre libertarismo e o mesmo só que politico?
    13·2 answers
  • Who started the brand "apple"
    15·2 answers
  • HEY I NEED HELP FAST
    13·2 answers
  • What is a good studying technique?
    11·2 answers
  • The total monthly payment Demarco and Tanya should anticipate is $1,700. $669. $877. $1,200.
    7·1 answer
  • Which of these is not a characteristic of science?.
    6·1 answer
  • Differentiate between participative and autonomous teaching and learning<br>​
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!