Azamov | Dev
Hello night owls 🦉 i will make post about big old ideas🥼 . Found this gem: relay exploits epitomize the dark side of contactless commerce 😏 .Just came across this gem: *** relay attacks are the criminal commercialization of contactless tech Criminal “Commercialization”…
Probably about NFC 🗿
Please open Telegram to view this post
VIEW IN TELEGRAM
Q1. Generate Tag for Video Caption
Mode :Easy
Example 1:
Mode :Easy
Example 1:
Input: caption = "Leetcode daily streak achieved"
Output: "#leetcodeDailyStreakAchieved"
Explanation:
The first letter for all words except "leetcode" should be capitalized
Please open Telegram to view this post
VIEW IN TELEGRAM
Leetcode contest
Q1. Generate Tag for Video Caption Mode :Easy Example 1: Input: caption = "Leetcode daily streak achieved" Output: "#leetcodeDailyStreakAchieved" Explanation: The first letter for all words except "leetcode" should be capitalized
Status: Done ✅
Code:Kotlin
IDLE : Intellij
Code :
@leetcode7
#leetcodecontest #leetcode #contest
Code:Kotlin
IDLE : Intellij
Code :
class Solution {
fun generateTag(caption: String): String {
val words = caption
.split("\\s+".toRegex())
.map { it.filter(Char::isLetter) }
.filter(String::isNotEmpty)
val camel = words
.mapIndexed { idx, w ->
w.lowercase().let { low ->
if (idx == 0) low
else low.replaceFirstChar { it.uppercaseChar() }
}
}
.joinToString("")
return ("#$camel").take(100)
}
}@leetcode7
#leetcodecontest #leetcode #contest
Please open Telegram to view this post
VIEW IN TELEGRAM