Results: 1580
Notes
  • Newest first
  • Oldest first
  • Newest first(All)
  • Oldest first(All)
Given a Rubik's Cube with a side length of n, return the number of individual stickers that are needed to cover the whole cube. Pictures of Rubik's Cubes The Rubik's cube of side length 1 has 6 stickers. The Rubik's cube of side length 2 has 24 stickers. The Rubik's cube of side length 3 has 54 stickers.
by Tinatin Kvinikadze
2 years ago
0
PHP
Problem Solving
0
Create a function that returns the smaller number.
by Tinatin Kvinikadze
2 years ago
0
PHP
Problem Solving
0
Create a function that takes the number of wins, draws and losses and calculates the number of points a football team has obtained so far. - wins get 3 points - draws get 1 point - losses get 0 points
by Tinatin Kvinikadze
2 years ago
0
PHP
Problem Solving
0
Given two strings, firstName and lastName, return a single string in the format "last, first".
by Tinatin Kvinikadze
2 years ago
0
PHP
Problem Solving
0
Create a function that takes the age in years and returns the age in days.
by Tinatin Kvinikadze
2 years ago
0
PHP
Problem Solving
0
Write two functions: toInt() : A function to convert a string to an integer. toStr() : A function to convert an integer to a string.
by Tinatin Kvinikadze
2 years ago
0
PHP
Problem Solving
0
Write a function that returns the length of a string. Make your function recursive.
by Tinatin Kvinikadze
2 years ago
0
PHP
Problem Solving
0
Create a function that takes two arguments. Both arguments are integers, a and b. Return Found if one of them is 10 or if their sum is 10. Otherwise, return Not found.
by Tinatin Kvinikadze
2 years ago
0
PHP
Problem Solving
0
function getExtension($file){
	$exts = [];
	foreach($file as $f){
		$info = pathinfo($f);
		//print_r($info);
		$exts []= $info['extension'];
	}
	return $exts;
};

print_r(getExtension(["ruby.rb", "cplusplus.cpp", "python.py", "javascript.js"]));
print_r(getExtension(["code.html", "code.css"]));
by Guram Azarashvili
2 years ago
0
PHP
Solutions
0

<?php
function calculatescore($x) {
return [
    substr_count($x, 'Y'), //substr_count-Counts how many times this data is given
    substr_count($x, 'O'),
    substr_count($x, 'U')
     ];
}
print_r (calculatescore("YOU")); // 1,1,1
print_r (calculatescore("YYOOUU)); //2,2,2
print_r (calculatescore("UUUOOYYYY)); //3,2,4
by Gvanca Gharibashvili
2 years ago
0
PHP
Object Oriented PHP Tutorial
0
Results: 1580