Leetcode 1497 Check If Array Pairs Are Divisible by k

  Рет қаралды 514

Jeevan Kumar

Jeevan Kumar

Күн бұрын

Пікірлер: 3
@AmAnKumAr-tg4fy
@AmAnKumAr-tg4fy Ай бұрын
why you are adding k in arr[i] % k, I don't get it (in -1 % 3 example)
@JeevanKumar-code
@JeevanKumar-code Ай бұрын
In some languages like Java -1%4 will give you -1, which is wrong (as remainder should always be +ve by definition). so we add -1+4 = 3. However in other languages like python -1%4 will give you 3 directly.
@AmAnKumAr-tg4fy
@AmAnKumAr-tg4fy Ай бұрын
@@JeevanKumar-code thanks
Leetcode 1203 Sort Items by Groups Respecting Dependencies
23:23
Jeevan Kumar
Рет қаралды 3,6 М.
Check If Array Pairs Are Divisible by k | Leetcode 1497
12:53
Hoodie gets wicked makeover! 😲
00:47
Justin Flom
Рет қаралды 138 МЛН
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 30 МЛН
Муж внезапно вернулся домой @Oscar_elteacher
00:43
История одного вокалиста
Рет қаралды 7 МЛН
СКОЛЬКО ПАЛЬЦЕВ ТУТ?
00:16
Masomka
Рет қаралды 3,5 МЛН
Leetcode 1497. Check If Array Pairs Are Divisible by k
13:46
Mastering Dynamic Programming - How to solve any interview problem (Part 1)
19:41
Leetcode  2742  Painting the Walls
18:45
Jeevan Kumar
Рет қаралды 1,3 М.
Fast Inverse Square Root - A Quake III Algorithm
20:08
Nemean
Рет қаралды 5 МЛН
Leetcode 1531 String Compression II
19:01
Jeevan Kumar
Рет қаралды 1,4 М.
1497. Check If Array Pairs Are Divisible by k - Day 1/31 Leetcode October Challenge
10:05
Programming Live with Larry
Рет қаралды 1,2 М.
Beginners Should Think Differently When Writing Golang
11:35
Anthony GG
Рет қаралды 124 М.
Hoodie gets wicked makeover! 😲
00:47
Justin Flom
Рет қаралды 138 МЛН