Тёмный

Detect capital | Leetcode  

Techdose
Подписаться 177 тыс.
Просмотров 8 тыс.
50% 1

Опубликовано:

 

20 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 47   
@vibekdutta6539
@vibekdutta6539 4 года назад
Someday hope to meet u and ask for an autograph coz ya doing some pretty amazing job. Now everyone is getting into coding just coz of youtubers like you. Thanks.
@techdose4u
@techdose4u 4 года назад
Welcome
@kunalsoni7681
@kunalsoni7681 4 года назад
Amazing problem 😊 And solution of this problem you provide is seriously helpful 😊 Thank you so much
@techdose4u
@techdose4u 4 года назад
Welcome
@naman_goyal
@naman_goyal 4 года назад
Sir.. Please go for graph video's... These topic are easy and we can solve them by ourself.. Waiting for kruskal algorithm
@sahilchoudhary1473
@sahilchoudhary1473 4 года назад
Yes sir i agree
@techdose4u
@techdose4u 4 года назад
It's coming. I told that I will keep uploading graph as well.Tomm I will upload Kruskal's.
@naman_goyal
@naman_goyal 4 года назад
@@techdose4u okay sir
@abhishekkumar9812
@abhishekkumar9812 4 года назад
good job brother, your videos are very helpful , keep up the the good work :)
@techdose4u
@techdose4u 4 года назад
Thanks :)
@saurabhsonkar2705
@saurabhsonkar2705 4 года назад
I found the tricky approach much easy than the approach 1 :)
@techdose4u
@techdose4u 4 года назад
Yes true
@HariKrishnan-ff4hf
@HariKrishnan-ff4hf 4 года назад
Entering For good product companies which is more important to concentrate competitive programming or good projects bro?
@techdose4u
@techdose4u 4 года назад
Both are good. You need to have good programming skills. This is the prime requirement. You may or may not do CP. It depends on you.
@karansagar7870
@karansagar7870 4 года назад
Well both approach were intuitive n easy , still nice video
@techdose4u
@techdose4u 4 года назад
👍
@ridimamittal4064
@ridimamittal4064 4 года назад
Amazing !!!! thank you sir : )
@techdose4u
@techdose4u 4 года назад
Welcome :)
@abhishekgautam1063
@abhishekgautam1063 4 года назад
Why am I not able to solve the first problem of August challenge? There's a lock icon on that problem. Do we have two problems for August 1st?
@techdose4u
@techdose4u 4 года назад
For premium members, they will have 8 problems per week.
@paras203
@paras203 4 года назад
I used a bit different approach. Declared two flags, isFirstBoolean and isSecondBoolean. Checked for first alphabet. If it is smaller then isSecondBoolean should be smaller and compared each alphabet to its corresponding ASCIi value. If first is Capital, then second should be either small or capital. Once we get the value of second flag i.e. isSecondCapital true or not. Compared with each alphabet. In any case it is giving false. Returning as false.
@dipeshjadhav1546
@dipeshjadhav1546 2 года назад
I did through ASCII as well, same method Bravo
@pa0414
@pa0414 3 года назад
Cant we use this?runs fast ,space used might be more def capital_check(word): n=len(word) return (word.upper()==word) or (word.lower()==word) or (is_upper(word[0]) and word[1:].lower()==word[1:])
@abhijeetkumar2204
@abhijeetkumar2204 4 года назад
sir,how to prepare for online coding round contest.becz i find it most difficult.From where should i prepare for that.
@techdose4u
@techdose4u 4 года назад
Can you mention which contests you are talking about? Because different contests have diff requirements.
@abhijeetkumar2204
@abhijeetkumar2204 4 года назад
@@techdose4u for any product based company like Amazon, Goldman Sachs etc from where should we prepare for online coding questions.Becz that questions are different than which ask in interview.
@manthankhorwal1477
@manthankhorwal1477 4 года назад
Bro please dont miss questions , there were some good questions to make video on in july leetcode
@techdose4u
@techdose4u 4 года назад
I had announced to cover ODD day questions so there will be 16 questions for AUG challenge.
@manthankhorwal1477
@manthankhorwal1477 4 года назад
Thankyou but today's question is much better than this detect captial ...this odd plan may miss some good problems
@techdose4u
@techdose4u 4 года назад
It takes me 2 days to make video at home. So, it is mandatory :(
@bharathkalyans
@bharathkalyans 4 года назад
As usual 🔥🔥
@techdose4u
@techdose4u 4 года назад
Thanks :)
@myaseen7419
@myaseen7419 4 года назад
Sir for recording which software you are using
@techdose4u
@techdose4u 4 года назад
Techsmith camtasia
@myaseen7419
@myaseen7419 4 года назад
@@techdose4u thanks sir, i hope it will be easy to use
@pleasesirmorevideos4684
@pleasesirmorevideos4684 4 года назад
AUGUsT CHALLENGES ARE AWESOME everyday you get to learn something new
@pleasesirmorevideos4684
@pleasesirmorevideos4684 4 года назад
UPDATE: lol i thought this was some graph problem
@techdose4u
@techdose4u 4 года назад
I had announced the plan already.
@lalitchouhan7952
@lalitchouhan7952 4 года назад
Sir please make vedio on hashset design question aug-2 ...
@techdose4u
@techdose4u 4 года назад
I had already announced that I will upload ODD days solutions. I have limited time and resources. I hope you understdand :( If problem is repeated on ODD days then I will upload even days video.
@raviashwin1157
@raviashwin1157 4 года назад
Techdose and knowledge centre is doing the same job
@techdose4u
@techdose4u 4 года назад
👍
@vibekdutta6539
@vibekdutta6539 4 года назад
There is a catch though, at the end of every video, when you ask to like and share you say it so fast, you seem like Eminem haha :)
@techdose4u
@techdose4u 4 года назад
😅
@hareeshr3979
@hareeshr3979 2 года назад
class Solution { public boolean detectCapitalUse(String word) { int count = 0; for(char i:word.toCharArray()){ if(Character.isUpperCase(i)) count++; } return (word.length()==count || count==1 && Character.isUpperCase(word.charAt(0)) || count==0); } }
@mixupthings
@mixupthings 3 года назад
My Python Code: def detectCapitalUse(self, word: str) -> bool: if word.islower(): return True elif word.isupper(): return True elif word[0].isupper() and word[1:].islower(): return True else: return False
Далее
Non overlapping intervals | Leetcode #435
15:29
Просмотров 36 тыс.
Solving LeetCode 520 in JavaScript (Detect Capital)
4:25
She Couldn’t Believe I Did This! 😭 #shorts
00:12
Paint Projects
00:17
Просмотров 1,3 млн
Detect Capital | LeetCode 520 | C++, Java, Python
9:16
My Brain after 569 Leetcode Problems
7:50
Просмотров 2,6 млн
Most Common Concepts for Coding Interviews
6:08
Просмотров 326 тыс.
Valid Palindrome | Leetcode #125
7:29
Просмотров 15 тыс.
Sequential Digits - Leetcode 1291 - Python
15:02
Просмотров 13 тыс.
She Couldn’t Believe I Did This! 😭 #shorts
00:12