Welcome to Code with K5KC!
Dive into the ultimate destination for all things coding interviews and beyond. Our channel is dedicated to providing high-quality, comprehensive tutorials and insights that will help you ace your coding interview and excel in your tech career.
Learn from basic to advance coding skills and become a better programmer:
- Datastructure and Algorithms
- System Design
- Programming Languages like Java, Python, and more
And Much More: Stay tuned for a variety of content that will take your coding skills to the next level.
Whether you're prepping for an upcoming interview or looking to broaden your programming knowledge, Code with K5KC is here to support you every step of the way. Subscribe and join our community of learners and future tech leaders! 🚀
Code With K5KC
Hey everyone! 👋
Today, we tackle the problem: **Longest Consecutive Sequence**.
Given an unsorted array of integers, find the length of the longest consecutive elements sequence.
⭐ *Problem:* leetcode.com/problems/longest-consecutive-sequence…
💻 *Code:* k5kc.com/cs/problems/longest-consecutive-sequence/
📺 *Watch the Full Video Explanation*:
https://www.youtube.com/watch?v=TwOXQ...
Let's continue to code, learn, and grow together! Drop your questions and thoughts in the comments below.👇
Happy coding! 🚀
#coding #k5kc #computerscience #programming #java #python #leetcode #coding-challenge #algorithms #array #hash-table #union-find
2 hours ago | [YT] | 0
View 0 replies
Code With K5KC
Hey everyone! 👋
Today, we tackle the problem: **Non-overlapping Intervals**.
Given an array of intervals intervals where intervals[i] = [starti, endi], return _the minimum number of intervals you need to remove to make the rest of the intervals non-overlapping_.
**Note** that intervals which only touch at a point are **non-overlapping**. For example, [1, 2] and [2, 3] are non-overlapping.
⭐ *Problem:* leetcode.com/problems/non-overlapping-intervals/
💻 *Code:* k5kc.com/cs/problems/non-overlapping-intervals/
📺 *Watch the Full Video Explanation*:
https://www.youtube.com/watch?v=H_wB7...
Let's continue to code, learn, and grow together! Drop your questions and thoughts in the comments below.👇
Happy coding! 🚀
#coding #k5kc #computerscience #programming #java #python #leetcode #coding-challenge #algorithms #array #dynamic-programming #greedy #sorting
1 week ago | [YT] | 2
View 0 replies
Code With K5KC
Hey everyone! 👋
Today, we tackle the problem: **Meeting Rooms 2**.
⭐ *Problem:* leetcode.com/problems/meeting-rooms-ii/
💻 *Code:* k5kc.com/cs/problems/meeting-rooms-ii/
📺 *Watch the Full Video Explanation*:
https://www.youtube.com/watch?v=odBaY...
Let's continue to code, learn, and grow together! Drop your questions and thoughts in the comments below.👇
Happy coding! 🚀
#coding #k5kc #computerscience #programming #java #python #leetcode #coding-challenge #algorithms #array #greedy #heap-priority-queue #prefix-sum #sorting #two-pointers
2 weeks ago | [YT] | 1
View 0 replies
Code With K5KC
Hi Everyone,
An update from our side, now we are trying to support multiple languages.
While English is key for interviews, sometimes complex logic clicks faster in your native language. That's why I'm adding multi-language support directly to my videos.
No need to switch channels! Just click the Settings (⚙️) > Audio Track to swap languages instantly.
Right now, I am supporting German and Hindi (apart from English). If you wish to collaborate more regional languages, please reach out to me.
Please checkout this video here for example: youtube.com/shorts/0RzZvHDK6uQ
I'd love your feedback—do the translations sound natural to you? Let me know below! 👇
Happy Coding,
Code with K5kC
2 weeks ago | [YT] | 1
View 4 replies
Code With K5KC
Which one is the proper **Method Reference** to convert a Stream of strings to uppercase?
There is no right or wrong answer. But with Java 8, we can stop being a middleman! 🛑
We often write Lambdas that just take a variable and immediately pass it to another method. That's "noise."
Java 8 gave us the *::* operator to cut through that noise.
Check out the new Short to see why `String::toUpperCase` is often better than `s -> s.toUpperCase()`! 👇
youtube.com/shorts/nnpGIMXB1jU
Happy coding! 🚀
#k5kc #Java #JavaTutorial #MethodReferences #LambdaExpressions #Java8 #Programming #Coding #SoftwareDevelopment #Tech #CodeCleanUp #FunctionalProgramming #JavaTips #Developer #ProgrammingTips
2 weeks ago | [YT] | 2
View 0 replies
Code With K5KC
Hey everyone! 👋
Today, we tackle the problem: **Insert Interval**.
Given a set of non-overlapping & sorted intervals by start time, insert a new interval into the intervals (merge if necessary).
OR
You are given an array of non-overlapping intervals where intervals[i] = [starti, endi] represent the start and the end of the ith interval, and intervals are sorted in ascending order by starti. You are also given an interval newInterval = [start, end] that represents the start and end of another interval.
Insert newInterval into intervals such that intervals is still sorted in ascending order by starti and intervals still does not have any overlapping intervals (merge overlapping intervals if necessary).
Return intervals _after the insertion_.
⭐ *Problem:* leetcode.com/problems/insert-interval/
💻 *Code:* k5kc.com/cs/problems/insert-interval/
📺 *Watch the Full Video Explanation*:
https://www.youtube.com/watch?v=4apiz...
Let's continue to code, learn, and grow together! Drop your questions and thoughts in the comments below.👇
Happy coding! 🚀
#coding #k5kc #computerscience #programming #java #python #leetcode #coding-challenge #algorithms #array #intervals
3 weeks ago | [YT] | 2
View 0 replies
Code With K5KC
Hey everyone! 👋,
Today, we tackle the problem: **Merge Intervals**.
It is one of the classic problems to understand how to tackle interval-related problems!
⭐ *Problem:* leetcode.com/problems/merge-intervals/
💻 *Code:* k5kc.com/cs/problems/merge-intervals/
📺 *Watch the Full Video Explanation*:
https://www.youtube.com/watch?v=x5KfO...
Let's continue to code, learn, and grow together! Drop your questions and thoughts in the comments below.👇
Happy coding! 🚀
#coding #k5kc #computerscience #programming #java #python #leetcode #coding-challenge #algorithms #array #sorting
4 weeks ago | [YT] | 0
View 0 replies
Code With K5KC
Hey everyone! 👋
Today, we tackle the problem: **Meeting Rooms**.
Given an array of meeting time intervals consisting of start and end times [[s1,e1],[s2,e2],...] (si ei), determine if a person could attend all meetings.
⭐ *Problem:* leetcode.com/problems/meeting-rooms/
💻 *Code:* k5kc.com/cs/problems/meeting-rooms/
📺 *Watch the Full Video Explanation*:
https://www.youtube.com/watch?v=KWT_l...
Let's continue to code, learn, and grow together! Drop your questions and thoughts in the comments below.👇
Happy coding! 🚀
#coding #k5kc #computerscience #programming #java #python #leetcode #coding-challenge #algorithms #array #sorting
1 month ago | [YT] | 2
View 0 replies
Code With K5KC
Hey everyone! 👋
Today, we tackle the problem: **Find Median from Data Stream**.
Given that integers are read from a data stream. Find median of elements read so for in efficient way.
OR
Implement the MedianFinder class:
- MedianFinder() initializes the MedianFinder object.
- void addNum(int num) adds the integer num from the data stream to the data structure.
- double findMedian() returns the median of all elements so far. Answers within 10-5 of the actual answer will be accepted.
Implement the MedianFinder class:
MedianFinder() initializes the MedianFinder object.
void addNum(int num) adds the integer num from the data stream to the data structure.
double findMedian() returns the median of all elements so far. Answers within 10-5 of the actual answer will be accepted.
🔗 *LINKS*
⭐Problem: leetcode.com/problems/find-median-from-data-stream…
💻Code: k5kc.com/cs/problems/find-median-from-data-stream/
Related short: youtube.com/shorts/P22NAZt1Mo...
⭐ *Problem:* leetcode.com/problems/find-median-from-data-stream…
💻 *Code:* k5kc.com/cs/problems/find-median-from-data-stream/
📺 *Watch the Full Video Explanation*:
https://www.youtube.com/watch?v=qZkYk...
Let's continue to code, learn, and grow together! Drop your questions and thoughts in the comments below.👇
Happy coding! 🚀
#coding #k5kc #computerscience #programming #java #python #leetcode #coding-challenge #algorithms #data-stream #design #heap-priority-queue #sorting #two-pointers
1 month ago | [YT] | 0
View 0 replies
Code With K5KC
Hey everyone! 👋
I've been working hard behind the scenes on a massive update to our website, and I’m so excited to finally share it with you. The goal was simple: help you find the exact problems you need to practice, faster.
Here’s a breakdown of what’s new:
*⚡️ 1. Supercharged Search*
Finding problems is now blazing fast.
Keyboard Shortcut: You can now instantly pull up the search dialog from anywhere on the site by pressing Cmd + K (on Mac) or Ctrl + K (on Windows).
Classic Click: Of course, clicking the search icon in the menu works just like before!
*🎯 2. Powerful New Filtering*
This is the biggest change! Forget scrolling forever. You can now drill down and find the perfect problem with these new filters:
- By Difficulty: (Easy, Medium, Hard)
- By Company: (e.g., Google, Meta, Amazon, etc.)
- By Topic: (e.g., Algorithms, System Design, Data Structures)
- By Subtopic: (e.g., Arrays, Dynamic Programming, Graphs, Hash Tables)
- By Video Solution: (My favorite!) You can now filter to see only the problems that have a video walkthrough.
*✨ 3. General Polish & What's Next*
You'll also notice a cleaner layout, faster-loading images, and a much smoother experience overall. This update is all about making your problem-solving sessions more efficient.
And we're just getting started...
I am already working on adding a ton of new problems (all with detailed solutions, of course!) which will be rolling out very soon.
Please go check it out!
k5kc.com/
Let me know what you think of the new search and filtering in the comments below! What features should I build next?
Happy coding!
Code with K5kC
1 month ago | [YT] | 3
View 0 replies
Load more