This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$n = 6; | |
$a = [1, 2, 3, 3, 5, 5, 4]; //n+1 элементов от 1 до n | |
// Самый очевидный способ - перебор | |
function getDublicate($a, $n) { | |
$dublicate = -1; | |
for ($i = 0; $i < $n+1; $i++) { | |
for ($j = $i+1; $j < $n+1; $j++){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extends admin | |
block content | |
body | |
.container-fluid | |
.col-md-12.b_admmainnav | |
.b_admmainnav-item.col-md-2.col-md-offset-10 Admin | Выйти | |
.container | |
.b_admheader.col-md-12 | |
.row |