2678. Number of Senior Citizens using Java | 01 August 2024 | Matrix | String | Java |Data Structure
Автор: My Learning Hub
Загружено: 2024-07-31
Просмотров: 34
Описание:
LeetCode Problem of the day
01 August 2024
Problem No [2678] : Number of Senior Citizens using Java
Level : Easy
Topic : Data Structures | String | Array
------------------------------------------------
You may also explore my another playlists :
👉Java Tutorial :
• Java Tutorial | Java Programming | Basic t...
👉 Geeks-for-Geeks Problem :
• Geeks-for-Geeks Problems
👉 Coding ninjas Easy coding problem :
• Coding Ninjas | MCQ Daily Solution | Pract...
----------------------------------------------------------------
⏩ Stay connected with me on social media for more updates and behind-the-scenes content !
You can find me on 🔍 :
📱Instagram Profile :
/ _ganesh_p09
🌐 LinkedIn Profile :
/ ganesh-prasad09
-----------------------------------------------------
✅ Description about the problem as follows :
You are given a 0-indexed array of strings details. Each element of details provides information about a given passenger compressed into a string of length 15. The system is such that:
The first ten characters consist of the phone number of passengers.
The next character denotes the gender of the person.
The following two characters are used to indicate the age of the person.
The last two characters determine the seat allotted to that person.
Return the number of passengers who are strictly more than 60 years old.
Example 1:
Input: details = ["7868190130M7522","5303914400F9211","9273338290F4010"]
Output: 2
Explanation: The passengers at indices 0, 1, and 2 have ages 75, 92, and 40. Thus, there are 2 people who are over 60 years old.
Example 2:
Input: details = ["1313579440F2036","2921522980M5644"]
Output: 0
Explanation: None of the passengers are older than 60.
------------------------------------------
🔔 If you enjoyed the content, please subscribe to the channel for more updates! 📺
👍 If you found this video helpful, don't forget to give it a thumbs up and share it with your friends! 📤
🙏 Thank you for watching the video! 😊
------------------------------------------------
📚 Check out other problems! 🔍:
🧩1. Partitions with Given Difference | Java | GeekforGeeks | Practice Problem
• GFG-POTD | Partitions with Given Differenc...
🧩2. K-Palindrom | Java | GeeksforGeeks | Practice Problems
• GFG-POTD | K-Palindrome using Java | 23 Ma...
🧩3. [ Part-02 ] Maximum Score Words Formed by Letters - Leetcode
• 1255. [Part-01] Maximum Score Words Formed...
🧩4. Mobile Numeric Keypad :
• GFG-POTD | 📱Mobile numeric keypad 🔢 using ...
🧩5. Summed Matrix :
• GFG-POTD | Summed Matrix using Java | Prac...
🧩6. Print Bracket Numbers :
• GFG-POTD | Print Bracket Number using Java...
🧩 7. Toeplitz matrix :
• GFG-POTD | Toeplitz matrix using Java | Pr...
🧩 8. 350. Intersection of Two Arrays II :
• 350. Intersection of Two Arrays II using J...
🧩 9. 1701. Average Waiting Time :
• 1701. Average Waiting Time using Java | 09...
------------------------------------------------
#leetcodeproblems | #leetcodesolution | #leetcodeproblemsolutionusingjava | #2678NumberofSeniorCitizens | #2678NumberofSeniorCitizensusingjava | #2678NumberofSeniorCitizensproblemoftheday | #2678NumberofSeniorCitizensleetcodesolution | #2678NumberofSeniorCitizenssolutionusingjava
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: