Mini-Max Sum - HackerRank - C#

  Рет қаралды 9,599

MentallyRecursive

MentallyRecursive

Күн бұрын

Link to this problem: www.hackerrank...
Have a better way of doing this? Comment below!

Пікірлер: 13
@annagoyal7248
@annagoyal7248 4 жыл бұрын
what an amazing way to solve and lovely thinking process shown... please keep making more videos- you are doing great work for future generation.. and me who loves to learn new ways of thinking.. ;-)
@XpLoeRe
@XpLoeRe 5 жыл бұрын
Learning alot from you man!
@justaboutanything8506
@justaboutanything8506 3 жыл бұрын
please keep posting more videos, I like them.
@brijeshrajput6854
@brijeshrajput6854 5 жыл бұрын
keep going on!
@0z2ae
@0z2ae 3 жыл бұрын
your vids are really helpful. thx.
@jordanguada4354
@jordanguada4354 4 жыл бұрын
I was so stuck on this question for a few hours and didn't know I needed to convert it due to the constraints of the data type. I can guess instead of doing that expression of (x => (long)x) for each value in the array... could you also do a for loop to convert them? I appreciate you for making this video
@jordanguada4354
@jordanguada4354 4 жыл бұрын
Just tested it. The solution works below! for (int i = 0; i < arr.Length - 1; ++i) { x1 += (long)arr[i]; } for (int i = 1; i < arr.Length; ++i) { x2 += (long)arr[i]; } I've been learning C in school for undergrad so I'm used to doing it the long way but I'll get used to the tricks soon. Cheeeers!
@mentallyrecursive1394
@mentallyrecursive1394 4 жыл бұрын
Nice, C is what I mostly used in school being technically a CE major not CS. It is the language Linus Torvalds created the universe in ;)
@yokoshi1
@yokoshi1 2 жыл бұрын
bruh you're using int[] ~ how would i do this exact thing using List
@АкериусМенетил-в6ю
@АкериусМенетил-в6ю 2 жыл бұрын
All u need to change is from Array.Sort(arr); to arr.Sort();
Mini-Max Sum - HackerRank Solution (Java)
7:36
daose
Рет қаралды 18 М.
Time Conversion - HackerRank - C#
13:51
MentallyRecursive
Рет қаралды 6 М.
I shouldn't be in the house  It's so embarrassing
00:22
Funny Parent-Child Videos
Рет қаралды 9 МЛН
哈莉奎因被吓到了#Cosplay
00:20
佐助与鸣人
Рет қаралды 32 МЛН
На ЭТО можно смотреть БЕСКОНЕЧНО 👌👌👌
01:00
БЕЗУМНЫЙ СПОРТ
Рет қаралды 4,4 МЛН
NERF TIMBITS BLASTER
00:39
MacDannyGun
Рет қаралды 14 МЛН
Birthday Cake Candles - HackerRank - C#
13:56
MentallyRecursive
Рет қаралды 4,3 М.
Hacker Rank Problem (MIN MAX SUM) C# | URDU
6:50
Education Hub Online
Рет қаралды 897
A Very Big Sum - HackerRank - C#
6:47
MentallyRecursive
Рет қаралды 5 М.
How to Crack Software (Reverse Engineering)
16:16
Eric Parker
Рет қаралды 904 М.
Naming Things in Code
7:25
CodeAesthetic
Рет қаралды 2,3 МЛН
How do Graphics Cards Work?  Exploring GPU Architecture
28:30
Branch Education
Рет қаралды 3,5 МЛН
Why You Shouldn't Nest Your Code
8:30
CodeAesthetic
Рет қаралды 2,9 МЛН
Transformers (how LLMs work) explained visually | DL5
27:14
3Blue1Brown
Рет қаралды 4,8 МЛН
"BEST C++ CODE ever written" // Code Review
27:38
The Cherno
Рет қаралды 151 М.
Plus Minus - HackerRank - C#
8:17
MentallyRecursive
Рет қаралды 9 М.
I shouldn't be in the house  It's so embarrassing
00:22
Funny Parent-Child Videos
Рет қаралды 9 МЛН