Pavan Kumar

34 posts

Pavan Kumar

Pavan Kumar

@PavanKumar26_

Tham gia Mart 2023
16 Đang theo dõi5 Người theo dõi
Pavan Kumar
Pavan Kumar@PavanKumar26_·
wrote more strings than code for Integer to English Words! 😅 And done with these array problems for today!
Pavan Kumar tweet mediaPavan Kumar tweet media
English
0
0
1
8
Pavan Kumar
Pavan Kumar@PavanKumar26_·
Day 8 #100DaysOfCode Solved today's Leetcode problem. Studied generic interview questions on Java and Spring Boot. Worked on the online food ordering app: designing the chat bot, login, and home page.
English
3
0
3
87
Pavan Kumar
Pavan Kumar@PavanKumar26_·
Any better approach? LeetCode problem of the day: 1334
Pavan Kumar tweet mediaPavan Kumar tweet media
English
1
0
4
277
Pavan Kumar
Pavan Kumar@PavanKumar26_·
@JulianWloch @RajReeshu I'm getting a TLE with this approach in Java. Anyway, it's good to know that this method works too!
English
1
0
1
20
Youlian
Youlian@JulianWloch·
@PavanKumar26_ @RajReeshu you have a point somewhere in arr that is between the left (L) side and right (R), assign moving left side and right (l,r), increment through arr, and move smaller than pivot to moving left (l) side same for right (r), do it again from L static to l moving same fore right
English
1
0
1
26
Youlian
Youlian@JulianWloch·
Hey, that was quick ... sort.🌬️🌪️ Check the commented code for the goofy Python thing. And what's up with hair-of-god guy drama on leetcode?
Youlian tweet media
English
11
0
69
1.1K
Youlian
Youlian@JulianWloch·
@RajReeshu Normal quick sort yes, but this one is a little bit changed to fit in time criteria
English
2
0
0
44
Pavan Kumar
Pavan Kumar@PavanKumar26_·
TLE in a loop? QuickSort🚫 Looks like my code’s having a party with infinite guests!
Pavan Kumar tweet media
English
0
0
1
16
Pavan Kumar
Pavan Kumar@PavanKumar26_·
Day 7 #100DaysOfCode Implemented LRU Cache in Java (get, put, handle capacity). Found the Longest Substring Without Repeating Characters. Binary Tree Level Order Traversal. Studied user authentication in Spring Security. Learned MongoDB basics and reviewed Java interview qns.
Pavan Kumar tweet mediaPavan Kumar tweet mediaPavan Kumar tweet media
English
1
0
3
25
Pavan Kumar
Pavan Kumar@PavanKumar26_·
@cmmonco The main trade-off in this solution is converting numbers to strings and then back to integers. Do you have any alternative approaches?
English
0
0
0
1
Pavan Kumar
Pavan Kumar@PavanKumar26_·
@cmmonco Converted each number using the mapping array. Pair each mapped value with its original index. Sorted by mapped values; If two numbers have the same mapped value, use original indices to maintain stability. Use the sorted pairs to reconstruct the sorted array of original num.
English
0
0
0
9
Pavan Kumar
Pavan Kumar@PavanKumar26_·
Day 6 #100DaysOfCode Solved today's Leetcode DSA daily challenge: Find the Length of Longest Repeated Character Calculate the Number of Ways to Represent N Cents Calculate Minimum Number of Jumps to Reach End of an Array
Pavan Kumar tweet media
English
0
0
4
30
Pavan Kumar
Pavan Kumar@PavanKumar26_·
Day 5 #100DaysOfCode Solved Leetcode 2418 (Sort the People) and practiced 645 (Set Mismatch), PlusOne. Updated and tailored my resume. Reviewed and applied MVC concepts.
Pavan Kumar tweet media
English
1
0
2
24