Number of Ways to Split Array | Leetcode 2270

  Рет қаралды 2,436

Techdose

Techdose

Күн бұрын

Пікірлер
@thenightwolf224
@thenightwolf224 3 күн бұрын
You are amazing man keep it up ❤🔥
@techdose4u
@techdose4u 3 күн бұрын
thanks :)
@sailendrachettri8521
@sailendrachettri8521 2 күн бұрын
Was able to solved using bruteforce approach but got TLE :( Though got intuition of solving using prefixSum but could'nt Thank you for your explanation sir :)
@techdose4u
@techdose4u 2 күн бұрын
Nice work!
@priyamani4349
@priyamani4349 2 күн бұрын
Thank you so much for this video
@techdose4u
@techdose4u 2 күн бұрын
welcome :)
@liveurlife3166
@liveurlife3166 2 күн бұрын
Completed Sir.
@techdose4u
@techdose4u 2 күн бұрын
Great! 👍
@jayantpradhan-sz9oj
@jayantpradhan-sz9oj 3 күн бұрын
please DRY run in java code also , its humble request
@keerthivasan138
@keerthivasan138 3 күн бұрын
In java i got error due to int conversion it fgot solved using long to sum and prefix sum but involves alot of trials and error!
@jayantpradhan-sz9oj
@jayantpradhan-sz9oj 3 күн бұрын
@@keerthivasan138 copy your code then paste to chatgpt then him where is error and explain how .
@anirudhsingla8344
@anirudhsingla8344 3 күн бұрын
@@keerthivasan138 yes same for me. getting one last test case failed due to this. but after using long its fixed.
@jayantpradhan-sz9oj
@jayantpradhan-sz9oj 2 күн бұрын
@@keerthivasan138 can i get your code ? or share me you leetcode profile link
@ashwinchakote3954
@ashwinchakote3954 2 күн бұрын
Sir One small Doubt wouldn't Prefix array take space? So,Space Complexity is O(N)
@techdose4u
@techdose4u 2 күн бұрын
I dint take prefix array. Just a sum variable :)
@DineshKumar.R-uo1rt
@DineshKumar.R-uo1rt 2 күн бұрын
Bro can you explain the problem 2080. Range Frequency Queries using segment tree in leetcode. I tried but can't solve the problem using segment tree.
@techdose4u
@techdose4u 2 күн бұрын
Recently solved a segment tree RMQ + Binary search. Frequency count is similar to RMQ. Please use that video. Goto the channel page and scroll past 15 videos you will see on thumbnail :)
@snehadey883
@snehadey883 2 күн бұрын
I wrote the same code but it beats only 64%, why?
@liveurlife3166
@liveurlife3166 2 күн бұрын
dont focus on the beats on leetcode as it differs based upon the engine. You can verify this by submitting the same code different times but you get different beats
@kthamim7552
@kthamim7552 2 күн бұрын
how to find which one fit ,whether int or long ?
@techdose4u
@techdose4u 2 күн бұрын
number of items * max value of item
@kthamim7552
@kthamim7552 2 күн бұрын
@techdose4u understood sir
@techdose4u
@techdose4u Күн бұрын
nice
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 62 МЛН
The evil clown plays a prank on the angel
00:39
超人夫妇
Рет қаралды 53 МЛН
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 700 М.
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
36:55
bayGUYS
Рет қаралды 1,9 МЛН
L7. Single Number III | Bit Manipulation
24:03
take U forward
Рет қаралды 63 М.
Dynamic Programming isn't too hard. You just don't know what it is.
22:31
DecodingIntuition
Рет қаралды 233 М.
2270. Number of Ways to Split Array. LeetCode
17:10
CS-Reference
Рет қаралды 148
Shifting Letters II | Leetcode 2381
16:41
Techdose
Рет қаралды 6 М.
5 Good Python Habits
17:35
Indently
Рет қаралды 680 М.
5 High Paying Skills I'm learning in 2025!
12:10
Tharun Speaks
Рет қаралды 464 М.
Number of Subarrays with xor K | Brute - Better - Optimal
24:55
take U forward
Рет қаралды 158 М.
2641. Cousins in Binary Tree II C++ solution #leetcode
19:44
Learn JavaScript - Full Course for Beginners
3:26:43
freeCodeCamp.org
Рет қаралды 19 МЛН
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 62 МЛН