No video

Most Profit Assigning Work | Leetcode Medium | Coding Blocks!

  Рет қаралды 143

Coding Blocks

Coding Blocks

Күн бұрын

Пікірлер: 2
@mdswaley5306
@mdswaley5306 2 ай бұрын
sir Brute force is work class Solution { public int maxProfitAssignment(int[] difficulty, int[] profit, int[] worker) { // int j = 0; int res = 0; List arr = new ArrayList(); for (int i = 0; i < worker.length; i++) { int pro = 0; for (int j = 0; j < difficulty.length; j++) { if (worker[i] >= difficulty[j]) { pro = Math.max(pro, profit[j]); } } arr.add(pro); } for(int i=0;i
@CodingBlocksIndia
@CodingBlocksIndia 2 ай бұрын
Brute force is working fine because of easy constraints..!!
Box jumping challenge, who stepped on the trap? #FunnyFamily #PartyGames
00:31
Family Games Media
Рет қаралды 32 МЛН
Parenting hacks and gadgets against mosquitoes 🦟👶
00:21
Let's GLOW!
Рет қаралды 12 МЛН
How I Gained 50,000 Followers In 1 Month (9 Easy Steps)
20:32
Grow with Alex
Рет қаралды 46 М.
The BIG Problem with Islamic Banking | Umer Suleman - Muslim Money Talk (Episode 5)
1:19:21
A.I. ‐ Humanity's Final Invention?
18:30
Kurzgesagt – In a Nutshell
Рет қаралды 4,2 МЛН
I gave 127 interviews. Top 5 Algorithms they asked me.
8:36
Sahil & Sarra
Рет қаралды 640 М.
Spam this and make $10k/mo - Building in Public Day 263
12:46
Jacky Chou from Indexsy
Рет қаралды 2 М.
В Курской все постепенно скукоживается?
21:11
Анатолий Шарий
Рет қаралды 1,9 МЛН
Box jumping challenge, who stepped on the trap? #FunnyFamily #PartyGames
00:31
Family Games Media
Рет қаралды 32 МЛН