PHP Pattern Program - Part2 | Interview Question for Beginners

  Рет қаралды 20,057

Programming with Vishal

Programming with Vishal

Күн бұрын

Пікірлер: 16
@shifaullahabdullah
@shifaullahabdullah 3 жыл бұрын
Sir apka bahut bahut shukria, apke lectures bari shauq se dhekta hun, 1 request hai agar aap ik video logic improving par banadain tu buhat acha hoga.... Thank u so much.
@gampooofficial203
@gampooofficial203 Жыл бұрын
thank you so much sir for this easy explaination...😇❤
@vickygupta1392
@vickygupta1392 3 жыл бұрын
Very nice super video 👍👍
@Entertainment-sh4ew
@Entertainment-sh4ew 3 жыл бұрын
awesome sir keep it up
@dastgirakhtar9782
@dastgirakhtar9782 3 жыл бұрын
Keep continue
@MegaRonaldinh0
@MegaRonaldinh0 3 жыл бұрын
I give a you a challenge Vishal could you try it's a solution for e-commerce product variants and option : its like: I want to do the exact same thing, except that instead of just one common pool of data, I want to find all the combinations of sets of data. Like this: Set 1: a, b, c Set 2: d, e Set 3: f, g And generate the following combinations: 1: a, d, f 2: a, d, g 3: a, e, f 4: a, e, g 5: b, d, f 6: b, d, g ... 11: c, e, f 12: c, e, g But I get lost because I don't know how many elements are in a set, nor do I know how many sets there are. The only thing I know (for my purpose) is that you can only select one element from each set.
@InspireMindsOfficial101
@InspireMindsOfficial101 4 ай бұрын
$sets = [ ['a', 'b', 'c'], ['d', 'e'], ['f', 'g'] ]; $setCount = count($sets); $indices = array_fill(0, $setCount, 0); $combinations = []; $totalCombinations = 1; foreach ($sets as $set) { $totalCombinations *= count($set); } for ($i = 0; $i < $totalCombinations; $i++) { $combination = []; for ($j = 0; $j < $setCount; $j++) { $combination[] = $sets[$j][$indices[$j]]; } $combinations[] = $combination; for ($j = $setCount - 1; $j >= 0; $j--) { if ($indices[$j] < count($sets[$j]) - 1) { $indices[$j]++; break; } else { $indices[$j] = 0; } } } foreach ($combinations as $index => $combination) { echo ($index + 1) . ": " . implode(", ", $combination) . ""; }
@ashishchamoli3326
@ashishchamoli3326 3 жыл бұрын
In 3:24 I think aapko j ki value ki jagah i ki value bolna tha.
@pankajsharma170
@pankajsharma170 3 жыл бұрын
thanku sir
@besttowast4705
@besttowast4705 Жыл бұрын
Yes sir
@ankitarathi5985
@ankitarathi5985 3 жыл бұрын
Sir I made one php application I want to give some functionality to update application in future to my users plz make video to update version of application
@nasarkhan6231
@nasarkhan6231 3 жыл бұрын
sir g make videos about array in php like [[0]] please clear this type of array
@dhruborajroy
@dhruborajroy 3 жыл бұрын
💖💖
@omeshdewangan3352
@omeshdewangan3352 3 жыл бұрын
Sir Kabhi Kabhi Thoda Code Wrong Hota Hai To Crash To Jta Hai Bahut System Ko Band Krke Start Krna Padta Hai..
@awara_zindagi_69
@awara_zindagi_69 3 жыл бұрын
Sircan you please tell me different between php mail function and php mailer
@SohailKhan-9422
@SohailKhan-9422 3 жыл бұрын
First view 😎
PHP Pattern Program - Part3(Pyramid Pattern)  Interview Question for Beginners
9:51
Top 10 PHP Interview Questions for Beginners
31:28
Programming with Vishal
Рет қаралды 97 М.
Try this prank with your friends 😂 @karina-kola
00:18
Andrey Grechka
Рет қаралды 9 МЛН
So Cute 🥰 who is better?
00:15
dednahype
Рет қаралды 19 МЛН
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН
PHP Pattern Program - Part1 | Interview Question for Beginners
8:55
Programming with Vishal
Рет қаралды 56 М.
important sql queries for interview | oracle database
11:17
Learn Coding
Рет қаралды 82 М.
Most Common Mistakes in Developers Interview
18:10
Programming with Vishal
Рет қаралды 20 М.
5 Design Patterns That Are ACTUALLY Used By Developers
9:27
Alex Hyett
Рет қаралды 322 М.
ASMR Programming - Spinning Cube - No Talking
20:45
Servet Gulnaroglu
Рет қаралды 4,3 МЛН
PHP Mock Interview Session | Live PHP MOCK INTERVIEW  Question
11:50
Try this prank with your friends 😂 @karina-kola
00:18
Andrey Grechka
Рет қаралды 9 МЛН