Hi there!
Please write thorough and human-readable tests for the WaitlistController.php
.
- You can use unit, feature and/or browser tests
- Cover corner-cases / regressions
- The tests don't actually need run
<?php | |
function findMaxValues (array $values) :int | |
{ | |
if(!is_array($values)) return "not an array"; | |
$max_val = 0; | |
<?php | |
function reverse_string($str) : string | |
{ | |
if(!is_string($str)) return "not a string"; | |
$lengthString = strlen($str); | |
$data = []; | |
class Solution { | |
function findMaxConsecutiveOnes($nums) { | |
$count = 0; | |
$consecutiveOnes = 0; | |
foreach($nums as $num){ | |
if($num == 1){ | |
$count +=1; | |
$consecutiveOnes = max($count, $consecutiveOnes); | |
}else{ |
<?php | |
$banks = | |
[ | |
'United Bank For Africa' => 'UNITED BANK FOR AFRICA PLC', | |
'Access Bank Plc' => 'ACCESS BANK PLC', | |
'Gtb' => 'GUARANTY TRUST BANK PLC', | |
'Firstbank Nigeria plc' => 'FIRST BANK OF NIGERIA PLC' | |
]; |
<Btn | |
highlight={this.state.highlight} | |
onToggle={this.toggleBtn} | |
/> |
$('btn').click(() => { | |
$(this).toggleClass('highlight') | |
$(this).text() === 'Add Highlight' | |
? $(this).text('Remove Highlight') | |
: $(this).text('Add Highlight') | |
}) |
<input | |
type="month" | |
value="2019-07" | |
/> | |
<!-- you need to give a default value of year - month as shown above --> | |
<input | |
type="week" | |
value="2019-W2" | |
/> |
<input | |
type="tel" | |
/> |
<input | |
type="color" | |
value="#ffffff" | |
/> |