Computers and Technology, 15.02.2021 02:40 dhananjaynagarkar
Write a function solution that, given an integer N, returns the maximum possible
value obtained by inserting one '5' digit inside the decimal representation of integer N.
Examples:
1. Given N = 268, the function should return 5268.
2. Given N = 670, the function should return 6750.
3. Given N = 0, the function should return 50.
4. Given N = -999, the function should return - 5999.
Assume that:
β’ N is an integer within the range (-8,000..8,000).
In your solution, focus on correctness. The performance of your solution will not be the
focus of the assessment.
Copyright 2009-2021 by Codility Limited. All Rights Reserved. Unauthorized copying, publication or
disclosure prohibited
Answers: 3
Computers and Technology, 22.06.2019 11:00
Eva has many contacts on the professional networking site she uses which contacts are considered second degree
Answers: 3
Computers and Technology, 23.06.2019 19:30
What are loans to a company or government for a set amount of time
Answers: 1
Computers and Technology, 24.06.2019 00:50
3. what is the output of the following statements? temporary object1; temporary object2("rectangle", 8.5, 5); temporary object3("circle", 6, 0); temporary object4("cylinder", 6, 3.5); cout < < fixed < < showpoint < < setprecision(2); object1.print(); object2.print(); object3.print(); object4.print(); object1.set("sphere", 4.5, 0); object1.print();
Answers: 1
Computers and Technology, 24.06.2019 01:30
Hazel has just finished adding pictures to her holiday newsletter. she decides to crop an image. what is cropping an image?
Answers: 1
Write a function solution that, given an integer N, returns the maximum possible
value obtained by...
History, 04.08.2019 14:00
Business, 04.08.2019 14:00
Mathematics, 04.08.2019 14:00
Mathematics, 04.08.2019 14:00
Social Studies, 04.08.2019 14:00
Social Studies, 04.08.2019 14:00
Biology, 04.08.2019 14:00
Mathematics, 04.08.2019 14:00
Biology, 04.08.2019 14:00
Physics, 04.08.2019 14:00
Biology, 04.08.2019 14:00
Business, 04.08.2019 14:00
Mathematics, 04.08.2019 14:00
Mathematics, 04.08.2019 14:00
Mathematics, 04.08.2019 14:00