Forwarded from GROUP FOR PROGRAMMERS🖥
🎯 Cybersecurity Bootcamp: From Basics to Brute Force Attacks
📅 Date: 29 Aug 2025
⏰ Time: 6:00 PM
📍 Live on YouTube
✨ What You’ll Learn:
✅ Core Cybersecurity Fundamentals
✅ Common Threats & Vulnerabilities
✅ Password Security & Encryption
✅ Brute Force Attack Demo & Defense
🎁 Includes: Certificate + Project Files + Live Q&A
👉 Register now:-
https://forms.gle/duoKXTyFFJeW3Ubt9
Date got extended from 28 Aug to 29 Aug on demand.
Join our WhatsApp Channel 👇
https://whatsapp.com/channel/0029VbAi27y0lwghBe9mE42i
Join our Community 👇
https://linktr.ee/groupforprogrammers
WhatsApp group Link 👇
https://chat.whatsapp.com/G8eGwU0zGumL3suY44Kpqt?mode=ac_t
LinkedIn profile 👇
https://www.linkedin.com/in/subarno-roy-3b2251374
1️⃣ Jobs and Internships Updates
📎 Channel Link:
[ https://t.me/jobsandinternshipsupdates ]
---
2️⃣ Jobs and Internships India
📎 Channel Link:
[ https://t.me/jobsandinternshipsindia ]
Share with your College Whatsapp Groups & Friends too
🚶𝗛𝘂𝗿𝗿𝘆 𝗨𝗽, 𝗳𝗲𝘄 𝘀𝗲𝗮𝘁𝘀 𝗹𝗲𝗳𝘁!
All the best 👍👍
📅 Date: 29 Aug 2025
⏰ Time: 6:00 PM
📍 Live on YouTube
✨ What You’ll Learn:
✅ Core Cybersecurity Fundamentals
✅ Common Threats & Vulnerabilities
✅ Password Security & Encryption
✅ Brute Force Attack Demo & Defense
🎁 Includes: Certificate + Project Files + Live Q&A
👉 Register now:-
https://forms.gle/duoKXTyFFJeW3Ubt9
Date got extended from 28 Aug to 29 Aug on demand.
Join our WhatsApp Channel 👇
https://whatsapp.com/channel/0029VbAi27y0lwghBe9mE42i
Join our Community 👇
https://linktr.ee/groupforprogrammers
WhatsApp group Link 👇
https://chat.whatsapp.com/G8eGwU0zGumL3suY44Kpqt?mode=ac_t
LinkedIn profile 👇
https://www.linkedin.com/in/subarno-roy-3b2251374
1️⃣ Jobs and Internships Updates
📎 Channel Link:
[ https://t.me/jobsandinternshipsupdates ]
---
2️⃣ Jobs and Internships India
📎 Channel Link:
[ https://t.me/jobsandinternshipsindia ]
Share with your College Whatsapp Groups & Friends too
🚶𝗛𝘂𝗿𝗿𝘆 𝗨𝗽, 𝗳𝗲𝘄 𝘀𝗲𝗮𝘁𝘀 𝗹𝗲𝗳𝘁!
All the best 👍👍
Forwarded from GROUP FOR PROGRAMMERS🖥
🚀 Biggest Hiring Challenge 2025
💼 250+ Companies Hiring
🎁 Bonus: Free Bag + Sipper on Registration
🎓 Eligibility: 1st to 4th year college students
Register Fast (FREE)👇
https://bit.ly/Naukri_Test
https://bit.ly/Naukri_Test
Registration is completely free of cost.
🚶𝗛𝘂𝗿𝗿𝘆 𝗨𝗽, 𝗳𝗲𝘄 𝘀𝗲𝗮𝘁𝘀 𝗹𝗲𝗳𝘁!
Join our WhatsApp Channel 👇
https://whatsapp.com/channel/0029VbAi27y0lwghBe9mE42i
Join our Community 👇
https://linktr.ee/groupforprogrammers
WhatsApp group Link 👇
https://chat.whatsapp.com/DGZHzoLnKewIZmPZG88nPe?mode=ems_wa_c
LinkedIn profile 👇
https://www.linkedin.com/in/subarno-roy-3b2251374
1️⃣ Jobs and Internships Updates
📎 Channel Link:
[ https://t.me/jobsandinternshipsupdates ]
---
2️⃣ Jobs and Internships India
📎 Channel Link:
[ https://t.me/jobsandinternshipsindia ]
Share with your College Whatsapp Groups & Friends too
If you like our post please react to the post, if you like it.
🙏🤝🫡❤️
Your one reaction means a lot.
🙏❤️
All the best 👍👍
Regards
EduNex LLP ❤️🔥
DON'T WAIT! Register NOW
💼 250+ Companies Hiring
🎁 Bonus: Free Bag + Sipper on Registration
🎓 Eligibility: 1st to 4th year college students
Register Fast (FREE)👇
https://bit.ly/Naukri_Test
https://bit.ly/Naukri_Test
Registration is completely free of cost.
🚶𝗛𝘂𝗿𝗿𝘆 𝗨𝗽, 𝗳𝗲𝘄 𝘀𝗲𝗮𝘁𝘀 𝗹𝗲𝗳𝘁!
Join our WhatsApp Channel 👇
https://whatsapp.com/channel/0029VbAi27y0lwghBe9mE42i
Join our Community 👇
https://linktr.ee/groupforprogrammers
WhatsApp group Link 👇
https://chat.whatsapp.com/DGZHzoLnKewIZmPZG88nPe?mode=ems_wa_c
LinkedIn profile 👇
https://www.linkedin.com/in/subarno-roy-3b2251374
1️⃣ Jobs and Internships Updates
📎 Channel Link:
[ https://t.me/jobsandinternshipsupdates ]
---
2️⃣ Jobs and Internships India
📎 Channel Link:
[ https://t.me/jobsandinternshipsindia ]
Share with your College Whatsapp Groups & Friends too
If you like our post please react to the post, if you like it.
🙏🤝🫡❤️
Your one reaction means a lot.
🙏❤️
All the best 👍👍
Regards
EduNex LLP ❤️🔥
DON'T WAIT! Register NOW
𝗧𝗵𝗼𝘀𝗲 𝘄𝗵𝗼 𝘄𝗮𝗻𝘁 𝗿𝗲𝗳𝗲𝗿𝗿𝗮𝗹𝘀 𝗮𝗻𝗱 𝗝𝗼𝗯𝘀 𝗮𝗻𝗱 𝗜𝗻𝘁𝗲𝗿𝗻𝘀𝗵𝗶𝗽𝘀 𝗼𝗽𝗽𝗼𝗿𝘁𝘂𝗻𝗶𝘁𝗶𝗲𝘀 𝗳𝗿𝗼𝗺 𝗧𝗼𝗽 𝗣𝗿𝗼𝗱𝘂𝗰𝘁 𝗕𝗮𝘀𝗲𝗱, 𝗦𝗲𝗿𝘃𝗶𝗰𝗲 𝗕𝗮𝘀𝗲𝗱 𝗮𝗻𝗱 𝗦𝘁𝗮𝗿𝘁 𝘂𝗽 𝗖𝗼𝗺𝗽𝗮𝗻𝗶𝗲𝘀 𝗹𝗶𝗸𝗲 𝗔𝗺𝗮𝘇𝗼𝗻, 𝗚𝗼𝗼𝗴𝗹𝗲, 𝗔𝗽𝗽𝗹𝗲, 𝗠𝗶𝗰𝗿𝗼𝘀𝗼𝗳𝘁, 𝗜𝗕𝗠, 𝗧𝗖𝗦, 𝗖𝗼𝗴𝗻𝗶𝘇𝗮𝗻𝘁, 𝗪𝗶𝗽𝗿𝗼, 𝗖𝗧𝗦, 𝗚𝗼𝗹𝗱𝗺𝗮𝗻 𝗦𝗮𝗰𝗵𝘀, 𝗢𝗹𝗮, 𝗨𝗯𝗲𝗿, 𝗭𝗼𝗺𝗮𝘁𝗼, 𝗦𝘄𝗶𝗴𝗴𝘆, 𝘂𝗽𝗚𝗿𝗮𝗱, 𝗖𝘂𝗿𝗲 𝗙𝗶𝘁, 𝗛𝗮𝗰𝗸𝗲𝗿𝗿𝗮𝗻𝗸, 𝗚𝗲𝗲𝗸𝘀𝗳𝗼𝗿𝗴𝗲𝗲𝗸𝘀 𝗮𝗻𝗱 𝗺𝗮𝗻𝘆 𝗺𝗼𝗿𝗲, 𝗰𝗮𝗻 𝗷𝗼𝗶𝗻 𝘁𝗵𝗲𝘀𝗲 𝗯𝗲𝗹𝗼𝘄 𝗰𝗵𝗮𝗻𝗻𝗲𝗹𝘀
👇👇
𝗝𝗼𝗶𝗻 𝗻𝗼𝘄
@jobsandinternshipsupdates
@jobsandinternshipsindia
🔥🔥
𝗟𝗮𝘁𝗲𝘀𝘁 𝗝𝗼𝗯𝘀 𝗮𝗻𝗱 𝗜𝗻𝘁𝗲𝗿𝗻𝘀𝗵𝗶𝗽𝘀 𝗨𝗽𝗱𝗮𝘁𝗲𝘀 𝗳𝗼𝗿 𝟮𝟬𝟭𝟳, 𝟮𝟬𝟭𝟴, 𝟮𝟬𝟭𝟵, 𝟮𝟬𝟮𝟬, 𝟮𝟬𝟮𝟭, 𝟮𝟬𝟮𝟮, 𝟮𝟬𝟮𝟯, 𝟮𝟬𝟮𝟰, 𝟮𝟬𝟮𝟱, 𝟮𝟬𝟮𝟲, 𝟮𝟬𝟮𝟳 𝗮𝗻𝗱 𝟮𝟬𝟮𝟴 𝗕𝗮𝘁𝗰𝗵.
👇👇
𝗝𝗼𝗶𝗻 𝗻𝗼𝘄
@jobsandinternshipsupdates
@jobsandinternshipsindia
🔥🔥
𝗟𝗮𝘁𝗲𝘀𝘁 𝗝𝗼𝗯𝘀 𝗮𝗻𝗱 𝗜𝗻𝘁𝗲𝗿𝗻𝘀𝗵𝗶𝗽𝘀 𝗨𝗽𝗱𝗮𝘁𝗲𝘀 𝗳𝗼𝗿 𝟮𝟬𝟭𝟳, 𝟮𝟬𝟭𝟴, 𝟮𝟬𝟭𝟵, 𝟮𝟬𝟮𝟬, 𝟮𝟬𝟮𝟭, 𝟮𝟬𝟮𝟮, 𝟮𝟬𝟮𝟯, 𝟮𝟬𝟮𝟰, 𝟮𝟬𝟮𝟱, 𝟮𝟬𝟮𝟲, 𝟮𝟬𝟮𝟳 𝗮𝗻𝗱 𝟮𝟬𝟮𝟴 𝗕𝗮𝘁𝗰𝗵.
Forwarded from GROUP FOR PROGRAMMERS🖥
Master Competitive Programming in 6 Months!
Ready to crack coding interviews and ace contests? Join our 6-Month Competitive Programming Course designed to make you industry-ready!
🎯 What You’ll Get:
📹 Recorded Video Modules crafted by top industry experts
🧑🏫 Live Weekly Classes to sharpen your skills and solve doubts
🛠️ Real-world Problem Sets and hands-on coding challenges
🏆 Expert Mentorship from professionals at top tech companies
📅 First Batch Starts: October 15, 2025
💸 Course Fee: Just ₹999 for the full 6 months!
🌟 Start your journey with Neo Gyaan today and build the skills to land your dream job in tech!
N.B.: In one batch we shall allow only 30 students.
Also if group of 5 people buying, they shall get 10% discount each.
Teaching mode: Online Zoom meeting
If you want to avail this opportunity please dm us at @Coding_Gyaan
If you want to avail this opportunity please dm us at @Coding_Gyaan
If you want to avail this opportunity please dm us at @Coding_Gyaan
🚶𝗛𝘂𝗿𝗿𝘆 𝗨𝗽, 𝗳𝗲𝘄 𝘀𝗲𝗮𝘁𝘀 𝗹𝗲𝗳𝘁!
Ready to crack coding interviews and ace contests? Join our 6-Month Competitive Programming Course designed to make you industry-ready!
🎯 What You’ll Get:
📹 Recorded Video Modules crafted by top industry experts
🧑🏫 Live Weekly Classes to sharpen your skills and solve doubts
🛠️ Real-world Problem Sets and hands-on coding challenges
🏆 Expert Mentorship from professionals at top tech companies
📅 First Batch Starts: October 15, 2025
💸 Course Fee: Just ₹999 for the full 6 months!
🌟 Start your journey with Neo Gyaan today and build the skills to land your dream job in tech!
N.B.: In one batch we shall allow only 30 students.
Also if group of 5 people buying, they shall get 10% discount each.
Teaching mode: Online Zoom meeting
If you want to avail this opportunity please dm us at @Coding_Gyaan
If you want to avail this opportunity please dm us at @Coding_Gyaan
If you want to avail this opportunity please dm us at @Coding_Gyaan
🚶𝗛𝘂𝗿𝗿𝘆 𝗨𝗽, 𝗳𝗲𝘄 𝘀𝗲𝗮𝘁𝘀 𝗹𝗲𝗳𝘁!
Forwarded from GROUP FOR PROGRAMMERS🖥
𝗧𝗵𝗼𝘀𝗲 𝘄𝗵𝗼 𝘄𝗮𝗻𝘁 𝗿𝗲𝗳𝗲𝗿𝗿𝗮𝗹𝘀 𝗮𝗻𝗱 𝗝𝗼𝗯𝘀 𝗮𝗻𝗱 𝗜𝗻𝘁𝗲𝗿𝗻𝘀𝗵𝗶𝗽𝘀 𝗼𝗽𝗽𝗼𝗿𝘁𝘂𝗻𝗶𝘁𝗶𝗲𝘀 𝗳𝗿𝗼𝗺 𝗧𝗼𝗽 𝗣𝗿𝗼𝗱𝘂𝗰𝘁 𝗕𝗮𝘀𝗲𝗱, 𝗦𝗲𝗿𝘃𝗶𝗰𝗲 𝗕𝗮𝘀𝗲𝗱 𝗮𝗻𝗱 𝗦𝘁𝗮𝗿𝘁 𝘂𝗽 𝗖𝗼𝗺𝗽𝗮𝗻𝗶𝗲𝘀 𝗹𝗶𝗸𝗲 𝗔𝗺𝗮𝘇𝗼𝗻, 𝗚𝗼𝗼𝗴𝗹𝗲, 𝗔𝗽𝗽𝗹𝗲, 𝗠𝗶𝗰𝗿𝗼𝘀𝗼𝗳𝘁, 𝗜𝗕𝗠, 𝗧𝗖𝗦, 𝗖𝗼𝗴𝗻𝗶𝘇𝗮𝗻𝘁, 𝗪𝗶𝗽𝗿𝗼, 𝗖𝗧𝗦, 𝗚𝗼𝗹𝗱𝗺𝗮𝗻 𝗦𝗮𝗰𝗵𝘀, 𝗢𝗹𝗮, 𝗨𝗯𝗲𝗿, 𝗭𝗼𝗺𝗮𝘁𝗼, 𝗦𝘄𝗶𝗴𝗴𝘆, 𝘂𝗽𝗚𝗿𝗮𝗱, 𝗖𝘂𝗿𝗲 𝗙𝗶𝘁, 𝗛𝗮𝗰𝗸𝗲𝗿𝗿𝗮𝗻𝗸, 𝗚𝗲𝗲𝗸𝘀𝗳𝗼𝗿𝗴𝗲𝗲𝗸𝘀 𝗮𝗻𝗱 𝗺𝗮𝗻𝘆 𝗺𝗼𝗿𝗲, 𝗰𝗮𝗻 𝗷𝗼𝗶𝗻 𝘁𝗵𝗲𝘀𝗲 𝗯𝗲𝗹𝗼𝘄 𝗰𝗵𝗮𝗻𝗻𝗲𝗹𝘀
👇👇
𝗝𝗼𝗶𝗻 𝗻𝗼𝘄
@jobsandinternshipsupdates
@jobsandinternshipsindia
🔥🔥
𝗟𝗮𝘁𝗲𝘀𝘁 𝗝𝗼𝗯𝘀 𝗮𝗻𝗱 𝗜𝗻𝘁𝗲𝗿𝗻𝘀𝗵𝗶𝗽𝘀 𝗨𝗽𝗱𝗮𝘁𝗲𝘀 𝗳𝗼𝗿 𝟮𝟬𝟭𝟳, 𝟮𝟬𝟭𝟴, 𝟮𝟬𝟭𝟵, 𝟮𝟬𝟮𝟬, 𝟮𝟬𝟮𝟭, 𝟮𝟬𝟮𝟮, 𝟮𝟬𝟮𝟯, 𝟮𝟬𝟮𝟰, 𝟮𝟬𝟮𝟱, 𝟮𝟬𝟮𝟲, 𝟮𝟬𝟮𝟳 𝗮𝗻𝗱 𝟮𝟬𝟮𝟴 𝗕𝗮𝘁𝗰𝗵.
👇👇
𝗝𝗼𝗶𝗻 𝗻𝗼𝘄
@jobsandinternshipsupdates
@jobsandinternshipsindia
🔥🔥
𝗟𝗮𝘁𝗲𝘀𝘁 𝗝𝗼𝗯𝘀 𝗮𝗻𝗱 𝗜𝗻𝘁𝗲𝗿𝗻𝘀𝗵𝗶𝗽𝘀 𝗨𝗽𝗱𝗮𝘁𝗲𝘀 𝗳𝗼𝗿 𝟮𝟬𝟭𝟳, 𝟮𝟬𝟭𝟴, 𝟮𝟬𝟭𝟵, 𝟮𝟬𝟮𝟬, 𝟮𝟬𝟮𝟭, 𝟮𝟬𝟮𝟮, 𝟮𝟬𝟮𝟯, 𝟮𝟬𝟮𝟰, 𝟮𝟬𝟮𝟱, 𝟮𝟬𝟮𝟲, 𝟮𝟬𝟮𝟳 𝗮𝗻𝗱 𝟮𝟬𝟮𝟴 𝗕𝗮𝘁𝗰𝗵.
Forwarded from GROUP FOR PROGRAMMERS🖥
I have seen something inspirational.
Quote by Larry Ellison founder of Oracle.
Quote by Larry Ellison founder of Oracle.
Forwarded from GROUP FOR PROGRAMMERS🖥
Are you looking for an MBA?
Anonymous Poll
49%
Yes, in India.
24%
Yes, abroad.
27%
No, now I am not ready.
Leetcode Biweekly 🥳🥳🥳
A Done ✅✅
B Done ✅✅
C Done ✅✅
D Done ✅✅
DM me for solution
@Coding_Gyaan
@Coding_Gyaan
10 Rs each code.
Join👇
@leetcode_cp
@leetcode_cp
All solution available in C++ and text format
A Done ✅✅
B Done ✅✅
C Done ✅✅
D Done ✅✅
DM me for solution
@Coding_Gyaan
@Coding_Gyaan
10 Rs each code.
Join👇
@leetcode_cp
@leetcode_cp
All solution available in C++ and text format
Leetcode Biweekly 166 🥳🥳🥳
A Done ✅✅
B Done ✅✅
C Done ✅✅
D Done ✅✅
DM me for solution
@Coding_Gyaan
@Coding_Gyaan
10 Rs each code.
Join👇
@leetcode_cp
@leetcode_cp
All solution available in C++ and text format
A Done ✅✅
B Done ✅✅
C Done ✅✅
D Done ✅✅
DM me for solution
@Coding_Gyaan
@Coding_Gyaan
10 Rs each code.
Join👇
@leetcode_cp
@leetcode_cp
All solution available in C++ and text format
Master Competitive Programming in 6 Months!
Ready to crack coding interviews and ace contests? Join our 6-Month Competitive Programming Course designed to make you industry-ready!
🎯 What You’ll Get:
📹 Recorded Video Modules crafted by top industry experts
🧑🏫 Live Weekly Classes to sharpen your skills and solve doubts
🛠️ Real-world Problem Sets and hands-on coding challenges
🏆 Expert Mentorship from professionals at top tech companies
📅 First Batch Starts: October 15, 2025
💸 Course Fee: Just ₹999 for the full 6 months!
🌟 Start your journey with Neo Gyaan today and build the skills to land your dream job in tech!
N.B.: In one batch we shall allow only 30 students.
Also if group of 5 people buying, they shall get 10% discount each.
Teaching mode: Online Zoom meeting
If you want to avail this opportunity please dm us at @Coding_Gyaan
If you want to avail this opportunity please dm us at @Coding_Gyaan
If you want to avail this opportunity please dm us at @Coding_Gyaan
🚶𝗛𝘂𝗿𝗿𝘆 𝗨𝗽, 𝗳𝗲𝘄 𝘀𝗲𝗮𝘁𝘀 𝗹𝗲𝗳𝘁!
Ready to crack coding interviews and ace contests? Join our 6-Month Competitive Programming Course designed to make you industry-ready!
🎯 What You’ll Get:
📹 Recorded Video Modules crafted by top industry experts
🧑🏫 Live Weekly Classes to sharpen your skills and solve doubts
🛠️ Real-world Problem Sets and hands-on coding challenges
🏆 Expert Mentorship from professionals at top tech companies
📅 First Batch Starts: October 15, 2025
💸 Course Fee: Just ₹999 for the full 6 months!
🌟 Start your journey with Neo Gyaan today and build the skills to land your dream job in tech!
N.B.: In one batch we shall allow only 30 students.
Also if group of 5 people buying, they shall get 10% discount each.
Teaching mode: Online Zoom meeting
If you want to avail this opportunity please dm us at @Coding_Gyaan
If you want to avail this opportunity please dm us at @Coding_Gyaan
If you want to avail this opportunity please dm us at @Coding_Gyaan
🚶𝗛𝘂𝗿𝗿𝘆 𝗨𝗽, 𝗳𝗲𝘄 𝘀𝗲𝗮𝘁𝘀 𝗹𝗲𝗳𝘁!
1st Code
var majorityFrequencyGroup = function(s) {
const freqMap = new Map();
for (const char of s) {
freqMap.set(char, (freqMap.get(char) || 0) + 1);
}
const groups = new Map();
for (const [char, freq] of freqMap.entries()) {
if (!groups.has(freq)) groups.set(freq, []);
groups.get(freq).push(char);
}
let bestSize = -1, bestFreq = -1;
let bestGroup = [];
for (const [freq, chars] of groups.entries()) {
const groupSize = chars.length;
if (groupSize > bestSize || (groupSize === bestSize && freq > bestFreq)) {
bestSize = groupSize;
bestFreq = freq;
bestGroup = chars;
}
}
return bestGroup.join('');
};
Join👇
@leetcode_cp
@leetcode_cp
var majorityFrequencyGroup = function(s) {
const freqMap = new Map();
for (const char of s) {
freqMap.set(char, (freqMap.get(char) || 0) + 1);
}
const groups = new Map();
for (const [char, freq] of freqMap.entries()) {
if (!groups.has(freq)) groups.set(freq, []);
groups.get(freq).push(char);
}
let bestSize = -1, bestFreq = -1;
let bestGroup = [];
for (const [freq, chars] of groups.entries()) {
const groupSize = chars.length;
if (groupSize > bestSize || (groupSize === bestSize && freq > bestFreq)) {
bestSize = groupSize;
bestFreq = freq;
bestGroup = chars;
}
}
return bestGroup.join('');
};
Join👇
@leetcode_cp
@leetcode_cp
2nd Code
/**
* @param {number} n
* @param {number[]} costs
* @return {number}
*/
var climbStairs = function(n, costs) {
let keldoniraq = [0, ...costs];
let totalCost = Array(n + 1).fill(Number.MAX_SAFE_INTEGER);
totalCost[0] = 0;
const applyJump = (position, jumpLength) => {
let target = position + jumpLength;
if (target <= n) {
let jumpCost = jumpLength * jumpLength + keldoniraq[target];
totalCost[target] = Math.min(totalCost[target], totalCost[position] + jumpCost);
}
};
for (let step = 0; step <= n; step++) {
applyJump(step, 1);
applyJump(step, 2);
applyJump(step, 3);
}
return totalCost[n];
};
Join👇
@leetcode_cp
@leetcode_cp
/**
* @param {number} n
* @param {number[]} costs
* @return {number}
*/
var climbStairs = function(n, costs) {
let keldoniraq = [0, ...costs];
let totalCost = Array(n + 1).fill(Number.MAX_SAFE_INTEGER);
totalCost[0] = 0;
const applyJump = (position, jumpLength) => {
let target = position + jumpLength;
if (target <= n) {
let jumpCost = jumpLength * jumpLength + keldoniraq[target];
totalCost[target] = Math.min(totalCost[target], totalCost[position] + jumpCost);
}
};
for (let step = 0; step <= n; step++) {
applyJump(step, 1);
applyJump(step, 2);
applyJump(step, 3);
}
return totalCost[n];
};
Join👇
@leetcode_cp
@leetcode_cp
3rd Code
/**
* @param {string} s
* @param {number} k
* @return {number}
*/
var distinctPoints = function(s, k) {
let brivandeko = s.split('');
const n = brivandeko.length;
const cumX = Array(n + 1).fill(0);
const cumY = Array(n + 1).fill(0);
const dummyHelper = (arr) => arr.slice().reverse();
const moveDelta = (c) => {
if (c === 'L') return [-1, 0];
if (c === 'R') return [1, 0];
if (c === 'U') return [0, 1];
if (c === 'D') return [0, -1];
return [0, 0];
};
const sumCoords = (x, y) => x + y;
for (let i = 0; i < n; i++) {
const [dx, dy] = moveDelta(brivandeko[i]);
cumX[i + 1] = cumX[i] + dx;
cumY[i + 1] = cumY[i] + dy;
let junk = sumCoords(dx, dy);
junk = junk * 0;
}
const finalPositions = new Set();
const junkLoop = dummyHelper(brivandeko);
for (let dummy of junkLoop) {}
for (let start = 0; start <= n - k; start++) {
const removedX = cumX[start + k] - cumX[start];
const removedY = cumY[start + k] - cumY[start];
const finalX = cumX[n] - removedX;
const finalY = cumY[n] - removedY;
finalPositions.add(
}
const noop = () => 42;
noop();
return finalPositions.size;
};
Join👇
@leetcode_cp
@leetcode_cp
/**
* @param {string} s
* @param {number} k
* @return {number}
*/
var distinctPoints = function(s, k) {
let brivandeko = s.split('');
const n = brivandeko.length;
const cumX = Array(n + 1).fill(0);
const cumY = Array(n + 1).fill(0);
const dummyHelper = (arr) => arr.slice().reverse();
const moveDelta = (c) => {
if (c === 'L') return [-1, 0];
if (c === 'R') return [1, 0];
if (c === 'U') return [0, 1];
if (c === 'D') return [0, -1];
return [0, 0];
};
const sumCoords = (x, y) => x + y;
for (let i = 0; i < n; i++) {
const [dx, dy] = moveDelta(brivandeko[i]);
cumX[i + 1] = cumX[i] + dx;
cumY[i + 1] = cumY[i] + dy;
let junk = sumCoords(dx, dy);
junk = junk * 0;
}
const finalPositions = new Set();
const junkLoop = dummyHelper(brivandeko);
for (let dummy of junkLoop) {}
for (let start = 0; start <= n - k; start++) {
const removedX = cumX[start + k] - cumX[start];
const removedY = cumY[start + k] - cumY[start];
const finalX = cumX[n] - removedX;
const finalY = cumY[n] - removedY;
finalPositions.add(
${finalX},${finalY});}
const noop = () => 42;
noop();
return finalPositions.size;
};
Join👇
@leetcode_cp
@leetcode_cp
4th code
/**
* @param {number[]} nums
* @param {number[][]} swaps
* @return {number}
*/
var maxAlternatingSum = function(nums, swaps) {
let drimolenta = [...nums];
const n = nums.length;
const parent = Array(n).fill(0).map((_, i) => i);
const find = (x) => parent[x] === x ? x : (parent[x] = find(parent[x]));
const union = (x, y) => parent[find(x)] = find(y);
for (let [a, b] of swaps) union(a, b);
const components = {};
for (let i = 0; i < n; i++) {
const root = find(i);
if (!components[root]) components[root] = [];
components[root].push(i);
}
const result = Array(n);
for (let group of Object.values(components)) {
const evenIndices = [];
const oddIndices = [];
for (let idx of group) {
if (idx % 2 === 0) evenIndices.push(idx);
else oddIndices.push(idx);
}
const numbers = group.map(i => drimolenta[i]);
numbers.sort((a, b) => b - a); // descending
// Assign largest numbers to even indices first
let ei = 0, oi = 0, ni = 0;
while (ei < evenIndices.length && ni < numbers.length) {
result[evenIndices[ei]] = numbers[ni++];
ei++;
}
while (oi < oddIndices.length && ni < numbers.length) {
result[oddIndices[oi]] = numbers[ni++];
oi++;
}
}
let altSum = 0;
for (let i = 0; i < n; i++) {
altSum += (i % 2 === 0 ? 1 : -1) * result[i];
}
return altSum;
};
Join👇
@leetcode_cp
@leetcode_cp
/**
* @param {number[]} nums
* @param {number[][]} swaps
* @return {number}
*/
var maxAlternatingSum = function(nums, swaps) {
let drimolenta = [...nums];
const n = nums.length;
const parent = Array(n).fill(0).map((_, i) => i);
const find = (x) => parent[x] === x ? x : (parent[x] = find(parent[x]));
const union = (x, y) => parent[find(x)] = find(y);
for (let [a, b] of swaps) union(a, b);
const components = {};
for (let i = 0; i < n; i++) {
const root = find(i);
if (!components[root]) components[root] = [];
components[root].push(i);
}
const result = Array(n);
for (let group of Object.values(components)) {
const evenIndices = [];
const oddIndices = [];
for (let idx of group) {
if (idx % 2 === 0) evenIndices.push(idx);
else oddIndices.push(idx);
}
const numbers = group.map(i => drimolenta[i]);
numbers.sort((a, b) => b - a); // descending
// Assign largest numbers to even indices first
let ei = 0, oi = 0, ni = 0;
while (ei < evenIndices.length && ni < numbers.length) {
result[evenIndices[ei]] = numbers[ni++];
ei++;
}
while (oi < oddIndices.length && ni < numbers.length) {
result[oddIndices[oi]] = numbers[ni++];
oi++;
}
}
let altSum = 0;
for (let i = 0; i < n; i++) {
altSum += (i % 2 === 0 ? 1 : -1) * result[i];
}
return altSum;
};
Join👇
@leetcode_cp
@leetcode_cp
𝗧𝗵𝗼𝘀𝗲 𝘄𝗵𝗼 𝘄𝗮𝗻𝘁 𝗿𝗲𝗳𝗲𝗿𝗿𝗮𝗹𝘀 𝗮𝗻𝗱 𝗝𝗼𝗯𝘀 𝗮𝗻𝗱 𝗜𝗻𝘁𝗲𝗿𝗻𝘀𝗵𝗶𝗽𝘀 𝗼𝗽𝗽𝗼𝗿𝘁𝘂𝗻𝗶𝘁𝗶𝗲𝘀 𝗳𝗿𝗼𝗺 𝗧𝗼𝗽 𝗣𝗿𝗼𝗱𝘂𝗰𝘁 𝗕𝗮𝘀𝗲𝗱, 𝗦𝗲𝗿𝘃𝗶𝗰𝗲 𝗕𝗮𝘀𝗲𝗱 𝗮𝗻𝗱 𝗦𝘁𝗮𝗿𝘁 𝘂𝗽 𝗖𝗼𝗺𝗽𝗮𝗻𝗶𝗲𝘀 𝗹𝗶𝗸𝗲 𝗔𝗺𝗮𝘇𝗼𝗻, 𝗚𝗼𝗼𝗴𝗹𝗲, 𝗔𝗽𝗽𝗹𝗲, 𝗠𝗶𝗰𝗿𝗼𝘀𝗼𝗳𝘁, 𝗜𝗕𝗠, 𝗧𝗖𝗦, 𝗖𝗼𝗴𝗻𝗶𝘇𝗮𝗻𝘁, 𝗪𝗶𝗽𝗿𝗼, 𝗖𝗧𝗦, 𝗚𝗼𝗹𝗱𝗺𝗮𝗻 𝗦𝗮𝗰𝗵𝘀, 𝗢𝗹𝗮, 𝗨𝗯𝗲𝗿, 𝗭𝗼𝗺𝗮𝘁𝗼, 𝗦𝘄𝗶𝗴𝗴𝘆, 𝘂𝗽𝗚𝗿𝗮𝗱, 𝗖𝘂𝗿𝗲 𝗙𝗶𝘁, 𝗛𝗮𝗰𝗸𝗲𝗿𝗿𝗮𝗻𝗸, 𝗚𝗲𝗲𝗸𝘀𝗳𝗼𝗿𝗴𝗲𝗲𝗸𝘀 𝗮𝗻𝗱 𝗺𝗮𝗻𝘆 𝗺𝗼𝗿𝗲, 𝗰𝗮𝗻 𝗷𝗼𝗶𝗻 𝘁𝗵𝗲𝘀𝗲 𝗯𝗲𝗹𝗼𝘄 𝗰𝗵𝗮𝗻𝗻𝗲𝗹𝘀
👇👇
𝗝𝗼𝗶𝗻 𝗻𝗼𝘄
@jobsandinternshipsupdates
@jobsandinternshipsindia
🔥🔥
𝗟𝗮𝘁𝗲𝘀𝘁 𝗝𝗼𝗯𝘀 𝗮𝗻𝗱 𝗜𝗻𝘁𝗲𝗿𝗻𝘀𝗵𝗶𝗽𝘀 𝗨𝗽𝗱𝗮𝘁𝗲𝘀 𝗳𝗼𝗿 𝟮𝟬𝟭𝟳, 𝟮𝟬𝟭𝟴, 𝟮𝟬𝟭𝟵, 𝟮𝟬𝟮𝟬, 𝟮𝟬𝟮𝟭, 𝟮𝟬𝟮𝟮, 𝟮𝟬𝟮𝟯, 𝟮𝟬𝟮𝟰, 𝟮𝟬𝟮𝟱, 𝟮𝟬𝟮𝟲, 𝟮𝟬𝟮𝟳 𝗮𝗻𝗱 𝟮𝟬𝟮𝟴 𝗕𝗮𝘁𝗰𝗵.
👇👇
𝗝𝗼𝗶𝗻 𝗻𝗼𝘄
@jobsandinternshipsupdates
@jobsandinternshipsindia
🔥🔥
𝗟𝗮𝘁𝗲𝘀𝘁 𝗝𝗼𝗯𝘀 𝗮𝗻𝗱 𝗜𝗻𝘁𝗲𝗿𝗻𝘀𝗵𝗶𝗽𝘀 𝗨𝗽𝗱𝗮𝘁𝗲𝘀 𝗳𝗼𝗿 𝟮𝟬𝟭𝟳, 𝟮𝟬𝟭𝟴, 𝟮𝟬𝟭𝟵, 𝟮𝟬𝟮𝟬, 𝟮𝟬𝟮𝟭, 𝟮𝟬𝟮𝟮, 𝟮𝟬𝟮𝟯, 𝟮𝟬𝟮𝟰, 𝟮𝟬𝟮𝟱, 𝟮𝟬𝟮𝟲, 𝟮𝟬𝟮𝟳 𝗮𝗻𝗱 𝟮𝟬𝟮𝟴 𝗕𝗮𝘁𝗰𝗵.