Bruhhh, guess what? AI Warehouse just uploaded a new video and the idea was the same as mine i was working on it might be time to change my idea..
I was literally working on this for like 1 month 😭 mtsm
https://www.youtube.com/watch?v=M8eSyh4YlbI
I was literally working on this for like 1 month 😭 mtsm
https://www.youtube.com/watch?v=M8eSyh4YlbI
YouTube
AI Learns Red Light Green Light (reinforcement learning)
AI Competes in Red Light Green Light!
https://brilliant.org/AIWarehouse/
If you want to learn more about AI and deep reinforcement learning (how Albert is trained), there are amazing courses teaching those exact concepts on Brilliant! You can use my link…
https://brilliant.org/AIWarehouse/
If you want to learn more about AI and deep reinforcement learning (how Albert is trained), there are amazing courses teaching those exact concepts on Brilliant! You can use my link…
I have started a challenge where I’m going to solve at least one LeetCode problem every day for the next month I’ll share my progress daily
#LeetCode #Challenge
#LeetCode #Challenge
❤1
Day 2
This one was tricky i had to google a bit to solve this, i used euclidean algorithm
Let me explain this a bit so it's asking us to find the common divisor for the two given strings
First we'll have to check whether they have common divisor or not,
We can check whether they are equal or not by using this
If that’s true, it means both strings share a pattern
and then we will find the GCD of the two strings by using their length
let's say we got 2 so the GCD of the two string will be the first two character of either str1 or str2
Try it out - Greatest Common Divisor of Strings
#LeetCode #Challenge #Whiplash2025
This one was tricky i had to google a bit to solve this, i used euclidean algorithm
Let me explain this a bit so it's asking us to find the common divisor for the two given strings
First we'll have to check whether they have common divisor or not,
We can check whether they are equal or not by using this
String1 + String2 must be equal to String2 + String1
If that’s true, it means both strings share a pattern
and then we will find the GCD of the two strings by using their length
GCD(length of str1, length of str2)
let's say we got 2 so the GCD of the two string will be the first two character of either str1 or str2
Try it out - Greatest Common Divisor of Strings
#LeetCode #Challenge #Whiplash2025
🔥1
Day 3
This one was pretty easy
Basically it's asking us to check if each child's candies after adding the extra candies is greater than or equal to the maximum number of candies any child currently has
Try it out - Kids With the Greatest Number of Candies
#LeetCode #Challenge #Whiplash2025
This one was pretty easy
Basically it's asking us to check if each child's candies after adding the extra candies is greater than or equal to the maximum number of candies any child currently has
Try it out - Kids With the Greatest Number of Candies
#LeetCode #Challenge #Whiplash2025
I wasn’t able to solve problems for the past two days due to some personal reasons, but I’m back now!
Day4
This is not the efficient way of solving this problem, but it works..
I will update you with the new version
Try it out - Can Place Flowers
#LeetCode #Challenge #Whiplash2025
This is not the efficient way of solving this problem, but it works..
I will update you with the new version
Try it out - Can Place Flowers
#LeetCode #Challenge #Whiplash2025
Day 5
Todays question asks us to reverse the vowels in a given string
for example if we are given
the vowels are
we need to reverse this to
so that whole word becomes
Again this is not the most efficient way of solving this i will update you with a better solution
Try it out - Reverse Vowels of a String
#LeetCode #Challenge #Whiplash2025
Todays question asks us to reverse the vowels in a given string
for example if we are given
IceCreAm
the vowels are
I, e, e, A
we need to reverse this to
A, e, e, I
so that whole word becomes
AceCreIm
Again this is not the most efficient way of solving this i will update you with a better solution
Try it out - Reverse Vowels of a String
#LeetCode #Challenge #Whiplash2025
Abico
Day4 This is not the efficient way of solving this problem, but it works.. I will update you with the new version Try it out - Can Place Flowers #LeetCode #Challenge #Whiplash2025
I solved Day 4's problem again and it beats 100% noicee
For comparison The first one took 22ms
For comparison The first one took 22ms
Abico
I solved Day 4's problem again and it beats 100% noicee For comparison The first one took 22ms
I just realized i used greedy algorithm lol
Basically greedy algorithm makes the best possible choice at each step in hopes of getting to the best global solution
Basically greedy algorithm makes the best possible choice at each step in hopes of getting to the best global solution
Abico
Day 5 Todays question asks us to reverse the vowels in a given string for example if we are given IceCreAm the vowels are I, e, e, A we need to reverse this to A, e, e, I so that whole word becomes AceCreIm Again this is not the most efficient way…
I solved Day 5's question again in hopes of making it faster but it's still slower than i would like it to be but better than before it went from 28ms to 17ms
Day 6
The first one was my initial solution it worked but it was pretty slow (2ms, Beats 35%) I wasn’t satisfied so I gave it another try and now it runs in (0ms, Beats 100%)!
Fun fact - this is my first medium challenge but it doesn't seem medium tho
Try it out - Reverse Words in a String
#LeetCode #Challenge
The first one was my initial solution it worked but it was pretty slow (2ms, Beats 35%) I wasn’t satisfied so I gave it another try and now it runs in (0ms, Beats 100%)!
Fun fact - this is my first medium challenge but it doesn't seem medium tho
Try it out - Reverse Words in a String
#LeetCode #Challenge
Day 7
The first one was my first solution but it wasn't accepted not because it doesn't work because it's was too slow so i had to google a bit to find a new solution
Basically the questions is asking use to find the product of all numbers in a list except the current one
My first solution creates new list for each number excluding the current number and multiplies the rest so imagine if we are given a list that has 50,000 number it would take ages
So the efficient way of solving this is using a technique called prefix and suffix product
Prefix - Multiply all elements before the current index
Suffix - Multiply all elements after the current index
For example let's say we are given
Then
And we multiply them(element-wise) to get the answer
Tbh idk how they came up with this it's genius
Try it out - Product of Array Except Self
#LeetCode #Challenge
The first one was my first solution but it wasn't accepted not because it doesn't work because it's was too slow so i had to google a bit to find a new solution
Basically the questions is asking use to find the product of all numbers in a list except the current one
My first solution creates new list for each number excluding the current number and multiplies the rest so imagine if we are given a list that has 50,000 number it would take ages
So the efficient way of solving this is using a technique called prefix and suffix product
Prefix - Multiply all elements before the current index
Suffix - Multiply all elements after the current index
For example let's say we are given
x = [1, 2, 3]
Then
Prefix = [1, 1, 2]
Suffix = [6, 3, 1]
And we multiply them(element-wise) to get the answer
Prefix * Suffix = [6, 3, 2]
Tbh idk how they came up with this it's genius
Try it out - Product of Array Except Self
#LeetCode #Challenge
Day 8
This was one was tough i couldn't solve it😭 i had to see a solution
The questions asks you to return true if there are 3 increasing sequences they don't have to be next to eachother
let's say we are given
the 3 increasing sequences will be
it looks simple at first but it's not
Here is the explanation
Try it out - Increasing Triplet Subsequence
#LeetCode #Challenge
This was one was tough i couldn't solve it😭 i had to see a solution
The questions asks you to return true if there are 3 increasing sequences they don't have to be next to eachother
let's say we are given
nums = [15,100,10,12,5,13]
the 3 increasing sequences will be
[10, 12, 13]
it looks simple at first but it's not
Here is the explanation
Try it out - Increasing Triplet Subsequence
#LeetCode #Challenge