Leetcode with dani – Telegram
Leetcode with dani
1.31K subscribers
196 photos
14 videos
56 files
240 links
Join us and let's tackle leet code questions together: improve your problem-solving skills
Preparing for coding interviews
learning new algorithms and data structures
connect with other coding enthusiasts
Download Telegram
this question freaks me out 🥵 i coundnt pass the time constraint
Leetcode with dani
this question freaks me out 🥵 i coundnt pass the time constraint
n, k = list(map(int, input().split()))
arr = list(map(int, input().split()))
bu = [0] * n
for i in range(len(arr) - 2, -1, -1):
bu[i] = abs(arr[i] - arr[i + 1]) + bu[i + 1]
for j in range(i + 2, min(i + k + 1, len(arr))):
bu[i] = min(abs(arr[i] - arr[j]) + bu[j], bu[i])

print(bu[0])
💯
7🔥1
🧠 TEASER
Don't ever save anything for a special occasion. Being alive is the special occasion.
— Mary Engelbreit
10
if u had the chance to be immortal ,would u take it
Anonymous Poll
57%
noo
28%
Yes
16%
not sure
😁17
Forwarded from 「 Eyu core 」
Enjoy but don't get attached Give but dont expect Listen but dont judge Love but not depend and finally accept but dont settle
7
8
Are you an African who dreams of building Google-level software engineering skills?

Applications are now open for A2SV G7 Education!

This is your moment to learn, grow, and prepare for the top tech companies you’ve always aspired to join.
At A2SV Education, you’ll join a vibrant community that challenges you to think bigger, code smarter, and create real impact across Africa 🌍.

⏱️ It only takes 7 minutes to apply. Take your shot at joining A2SV G7 Education today!

👉 Apply now: https://form.typeform.com/to/wOWdCFrZ

📣 Spread the word! Tag a friend, share this post, and help us reach more brilliant African minds ready to transform their future through A2SV.
Together, we empower Africa’s next generation of world-class engineers and tech entrepreneurs! 💪 💻

#A2SV #Education #Generation7 #TopTech #ApplicationsAreOpen #SoftwareEngineering #AfricaTech
Forwarded from Yonathan
🤖 Lately I’ve been diving deep into Android security.

I just learned that every Android device has a tiny hardware chip that handles sensitive operations things like password protection, cryptographic keys, and authentication.

It can even verify your phone’s authenticity. It’s crazy how underused this feature is.

🚀 I’m building something around it, updates coming soon.
Please open Telegram to view this post
VIEW IN TELEGRAM
🆒2👍1