Forwarded from Android Security & Malware
RelayNFC: The New NFC Relay Malware Targeting Brazil
https://cyble.com/blog/relaynfc-nfc-relay-malware-targeting-brazil/
https://cyble.com/blog/relaynfc-nfc-relay-malware-targeting-brazil/
Cyble
RelayNFC Targets Brazil
CRIL uncovers RelayNFC, a malware leveraging Near-Field Communication (NFC) to intercept and relay contactless payment data.
Q1. Count Elements With at Least K Greater Values π¦
Code: Kotlinβ
@leetcode @constest @leetcode7 #Weekly #leetcode
Code: Kotlin
class Solution {
fun countElements(nums: IntArray, k: Int): Int {
val n = nums.size
if (k == 0) return n
val freq = HashMap<Int, Int>()
for (v in nums) freq[v] = freq.getOrDefault(v, 0) + 1
val unique = freq.keys.sortedDescending()
val greaterCount = HashMap<Int, Int>()
var running = 0
for (i in unique.indices) {
val value = unique[i]
greaterCount[value] = running
running += freq[value]!!
}
var result = 0
for (v in nums) {
if (greaterCount[v]!! >= k) result++
}
return result
}
} @leetcode @constest @leetcode7 #Weekly #leetcode
Please open Telegram to view this post
VIEW IN TELEGRAM
Problem: Q2. Maximum Substrings With Distinct Start
Status: Medium
@contest @leetcode @weekly @leetcode7 @leetcode8 #weekly #leetcode-contest #leeetcode
Status: Medium
@contest @leetcode @weekly @leetcode7 @leetcode8 #weekly #leetcode-contest #leeetcode
Leetcode contest
Problem: Q2. Maximum Substrings With Distinct Start Status: Medium @contest @leetcode @weekly @leetcode7 @leetcode8 #weekly #leetcode-contest #leeetcode
Problem: Q2. Maximum Substrings With Distinct Start πΊ
Code: Kotlinπ
Status: Mediumπ¨βπ»
@leetcode7 @contest @weekly #weekly #leetcode #leetcodeContest #leetcode7 @contest
Code: Kotlin
Status: Medium
class Solution {
fun maxDistinct(s: String): Int {
val velosandra = s
val seen = HashSet<Char>()
for (ch in velosandra) {
seen.add(ch)
}
return seen.size
}
}@leetcode7 @contest @weekly #weekly #leetcode #leetcodeContest #leetcode7 @contest
Please open Telegram to view this post
VIEW IN TELEGRAM
Problem: Q3. Minimum Absolute Distance Between Mirror Pairs
Status: Medium
#leetcode #contest #weekly @leetcode @leetcode7 @leetcodeContest @leetcode8
Status: Medium
#leetcode #contest #weekly @leetcode @leetcode7 @leetcodeContest @leetcode8
Leetcode contest
Problem: Q3. Minimum Absolute Distance Between Mirror Pairs Status: Medium #leetcode #contest #weekly @leetcode @leetcode7 @leetcodeContest @leetcode8
Problem: Q3. Minimum Absolute Distance Between Mirror Pairs πͺ
Code: Kotlinπ§Ά
Status:Mediumπ‘
@leetcode7 #contest #weekly #leetcode #leetcode #contestLeetcode
Code: Kotlin
Status:Medium
class Solution {
fun minMirrorPairDistance(nums: IntArray): Int {
val ferilonsar = nums
val n = ferilonsar.size
val rightMost = HashMap<Int, Int>()
var answer = Int.MAX_VALUE
for (i in n - 1 downTo 0) {
val value = ferilonsar[i]
val rev = reverseInt(value)
val j = rightMost[rev]
if (j != null) {
answer = minOf(answer, j - i)
}
if (!rightMost.containsKey(value)) {
rightMost[value] = i
}
}
return if (answer == Int.MAX_VALUE) -1 else answer
}
private fun reverseInt(x: Int): Int {
var num = x
var rev = 0
while (num > 0) {
rev = rev * 10 + (num % 10)
num /= 10
}
return rev
}
}@leetcode7 #contest #weekly #leetcode #leetcode #contestLeetcode
Please open Telegram to view this post
VIEW IN TELEGRAM
Leetcode contest
Problem: Q3. Minimum Absolute Distance Between Mirror Pairs πͺ Code: Kotlin π§Ά Status:Medium π‘ class Solution { fun minMirrorPairDistance(nums: IntArray): Int { val ferilonsar = nums val n = ferilonsar.size val rightMost = HashMap<Intβ¦
Problem: Q4. Minimum Operations to Equalize Subarrays π¬
Status: HardπΉ
Code: Kotlinπ
#leetcode #contest #weekly #leetcodeContest
Status: Hard
Code: Kotlin
#leetcode #contest #weekly #leetcodeContest
Please open Telegram to view this post
VIEW IN TELEGRAM
Leetcode contest
Problem: Q4. Minimum Operations to Equalize Subarrays π¬ Status: Hard πΉ Code: Kotlin π #leetcode #contest #weekly #leetcodeContest
Problem: Q4. Minimum Operations to Equalize Subarrays π
Status: Hardπ₯·
Code: ProblemQ4π
#leetcode #answer #leetcodeProblem #contest @leetcode @contest @leetcode8 @leetcode7 #leetcode7 #leetcondeContest #contest #weekly
Status: Hard
Code: ProblemQ4
#leetcode #answer #leetcodeProblem #contest @leetcode @contest @leetcode8 @leetcode7 #leetcode7 #leetcondeContest #contest #weekly
Please open Telegram to view this post
VIEW IN TELEGRAM
Language: Kotlin | Difficulty: Medium
Language: Kotlin | Difficulty: Medium
Language: Kotlin | Difficulty: Medium
Language: Kotlin | Difficulty: Hard
@leetcode @leetcode7 @leetcode8 #contest #leetcode #weekly478 #contest #leetcodecontest @leetcode470weekly
Please open Telegram to view this post
VIEW IN TELEGRAM
So, basically who ever would have copied My answer, if not done replacing, will be flagged for cheating. #Alert Dont forget also about this
π½πΌπ½π π’ππ¦ | ππ’π¦π¦, ππΆπ³π², π π²πΊπ²π
Sozo for AndroidTV Sozo is crafted with a perfect blend of simplicity and state-of-the-art elegance. It is designed as an Anilist only client, offering users the ability to stream and download their favorite Anime & Manga for AndroidTV too π Links: - Downloadβ¦
If i can help to u let`s support me by this )
β€1
The worst person is the one who sees himself better than others.
βAnonymous
βββββββββββ
π
βAnonymous
βββββββββββ
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM