Most Profit Assigning Work | Leetcode Medium | Coding Blocks!

  Рет қаралды 144

Coding Blocks

Coding Blocks

Күн бұрын

Пікірлер: 2
@mdswaley5306
@mdswaley5306 4 ай бұрын
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 4 ай бұрын
Brute force is working fine because of easy constraints..!!
Quiet Night: Deep Sleep Music with Black Screen - Fall Asleep with Ambient Music
3:05:46
The TRIPLE FOLDING phone has a Problem.
12:54
Mrwhosetheboss
Рет қаралды 1,8 МЛН
How it feels when u walk through first class
00:52
Adam W
Рет қаралды 26 МЛН
Я сделала самое маленькое в мире мороженое!
00:43
I tricked MrBeast into giving me his channel
00:58
Jesser
Рет қаралды 22 МЛН
Think Fast, Talk Smart: Communication Techniques
58:20
Stanford Graduate School of Business
Рет қаралды 41 МЛН
Alpha Waves Heal Damage In The Body, Brain Massage While You Sleep, Improve Your Memory
1:22:11
How I Approach a New Leetcode Problem (live problem solving)
25:31
How it feels when u walk through first class
00:52
Adam W
Рет қаралды 26 МЛН