Forwarded from Codeforces Official
Codeforces Round 1014 (Div. 2) will take place on the 29th of March at 14:35 UTC.
Please, join by the link https://codeforces.com/contests/2092?locale=en
Please, join by the link https://codeforces.com/contests/2092?locale=en
Codeforces
Codeforces Round 1014 (Div. 2) - Codeforces
Codeforces. Programming competitions and contests, programming community
Forwarded from Codeforces Official
🤪April Fools Day Contest 2025🤪 will take place on the 1st of April at 14:35 UTC.
Please, join by the link https://codeforces.com/contests/2095
Please, join by the link https://codeforces.com/contests/2095
Codeforces
April Fools Day Contest 2025 - Codeforces
Codeforces. Programming competitions and contests, programming community
If anyone has questions or is interviewed by A2SV today, please share the questions with me. I'll post them in this channel!
@zprogramming_bot
@zprogramming_bot
👍5❤2
Forwarded from Codeforces Official
Educational Codeforces Round 177
(rated for Div. 2) starts on the 3rd of April at 14:35 UTC.
Please, join by the link https://codeforces.com/contests/2086
(rated for Div. 2) starts on the 3rd of April at 14:35 UTC.
Please, join by the link https://codeforces.com/contests/2086
Codeforces
Educational Codeforces Round 177 (Rated for Div. 2) - Codeforces
Codeforces. Programming competitions and contests, programming community
Question Denoscription
You are given a 0-indexed string s consisting of only lowercase English letters. Return the number of substrings in s that begin and end with the same character.
A substring is a contiguous non-empty sequence of characters within a string.
Example 1:
Input: s = "abcba" #"a", "b", "c", "b","a",abcba","bcb" a:2 b:2 c : 1
Output: 7
Explanation:
The substrings of length 1 that start and end with the same letter are: "a", "b", "c", "b", and "a".
The substring of length 3 that starts and ends with the same letter is: "bcb".
The substring of length 5 that starts and ends with the same letter is: "abcba".
Example 2:
Input: s = "abacad"
Output: 9
Explanation:
The substrings of length 1 that start and end with the same letter are: "a", "b", "a", "c", "a", and "d".
The substrings of length 3 that start and end with the same letter are: "aba" and "aca".
The substring of length 5 that starts and ends with the same letter is: "abaca".
Example 3:
Input: s = "a"
Output: 1
Explanation:
The substring of length 1 that starts and ends with the same letter is: "a".
Constraints:
1 <= s.length <= 105
s consists only of lowercase English letters
You are given a 0-indexed string s consisting of only lowercase English letters. Return the number of substrings in s that begin and end with the same character.
A substring is a contiguous non-empty sequence of characters within a string.
Example 1:
Input: s = "abcba" #"a", "b", "c", "b","a",abcba","bcb" a:2 b:2 c : 1
Output: 7
Explanation:
The substrings of length 1 that start and end with the same letter are: "a", "b", "c", "b", and "a".
The substring of length 3 that starts and ends with the same letter is: "bcb".
The substring of length 5 that starts and ends with the same letter is: "abcba".
Example 2:
Input: s = "abacad"
Output: 9
Explanation:
The substrings of length 1 that start and end with the same letter are: "a", "b", "a", "c", "a", and "d".
The substrings of length 3 that start and end with the same letter are: "aba" and "aca".
The substring of length 5 that starts and ends with the same letter is: "abaca".
Example 3:
Input: s = "a"
Output: 1
Explanation:
The substring of length 1 that starts and ends with the same letter is: "a".
Constraints:
1 <= s.length <= 105
s consists only of lowercase English letters
Forwarded from Ibnu-Nezif Abasambi
I HAVE INTERVIEWED ON A2SV ON THURSDAY AND THE QUESTION WAS
/*
Question Denoscription
Given a string s and an integer k, return the number of substrings in s of length k with no repeated characters.
Example 1:
Input: s = "havefunonleetcode", k = 5
Output: 6
Explanation: There are 6 substrings they are: 'havef','avefu','vefun','efuno','etcod','tcode'.
Example 2:
Input: s = "home", k = 5
Output: 0
Explanation: Notice k can be larger than the length of s. In this case, it is not possible to find any substring.
Constraints:
1 <= s.length <= 104
s consists of lowercase English letters.
1 <= k <= 104
*/
FINALLY I HAVE SOLVED THE QUESTION LIKE THIS IN C++ MAY BE IT IS USEFUL
/*
Question Denoscription
Given a string s and an integer k, return the number of substrings in s of length k with no repeated characters.
Example 1:
Input: s = "havefunonleetcode", k = 5
Output: 6
Explanation: There are 6 substrings they are: 'havef','avefu','vefun','efuno','etcod','tcode'.
Example 2:
Input: s = "home", k = 5
Output: 0
Explanation: Notice k can be larger than the length of s. In this case, it is not possible to find any substring.
Constraints:
1 <= s.length <= 104
s consists of lowercase English letters.
1 <= k <= 104
*/
FINALLY I HAVE SOLVED THE QUESTION LIKE THIS IN C++ MAY BE IT IS USEFUL
#include <bits/stdc++.h>
using namespace std;
class Solution {
public :
int solve (string s,int k){
vector <int> freq(26);
int l=0;int r=0;
int offset=(int)'a';
int ans=0;
while (r<s.size()){
if (r-l<k-1){
freq[s[r]-offset]++;
r++;
}else if (r-l==k-1){
freq[s[r]-offset]++;
r++;
bool t=true;
for (int x:freq){
if (x>1){
t=false;
}
}
t?ans+=1:ans=ans;
}else if (r-l>k-1){
freq[s[l]-offset]--;
l++;
}
}
return ans;
}
};
int main () {
string s="abcdefhijklmnopqrstuvwxyz";
int k=5;
Solution* sol=new Solution();
cout<<sol->solve(s,k);
}
❤4⚡1
Forwarded from Dagmawi Babi
Was talking to Emre and yeah A2SV is staying and the issues are resolving. There's still an issue of funding but he's very hopeful about it now. We won :)
I'm super glad and I'm happy for all the present and future A2SVians. This's wonderful news. Thank you everyone that supported, shared and encouraged this. ❤️
I'm super glad and I'm happy for all the present and future A2SVians. This's wonderful news. Thank you everyone that supported, shared and encouraged this. ❤️
👍9🤗3
When someone mentions on LinkedIn "I finally landed my dream job", they miss to tell you about
Let's think about it step by step.
Why Do You Need a Job?
Before jumping into any career path, ask yourself:
➤ Why do I need a job?
Is it for financial stability?
Personal growth?
A sense of purpose?
Jobs can provide structure, income, and learning opportunities. But they are not the only way to achieve these goals. Clarity on your "why" will help you make smarter decisions.
What if the market is not in your favor, which it is right now?
The job market is unpredictable. Recessions, layoffs, and industry shifts happen. So, what's your backup plan?
Here are some alternatives:
Freelancing: Offer your skills to clients worldwide. Platforms like Upwork or Fiverr make this easier than ever.
Starting a Side Hustle: Turn hobbies into income. Think tutoring, content creation, or selling digital products.
Remote Work: Explore temporary or part-time remote jobs to stay flexible while earning.
Your job shouldn't be your only source of income. Think of ways to diversify.
How Can You Acquire More Skills to Turn the Tables?
If the market isn't working for you, invest in yourself.
➤ Here's how:
Take Online Courses: Platforms like Coursera or Udemy offer affordable courses in trending fields.
Network: Attend webinars, join LinkedIn groups, and connect with industry leaders.
Experiment: Take on small projects outside your comfort zone to build confidence and expertise.
Every new skill adds value to your profile and opens new opportunities.
Look for jobs that offer more than a paycheck
A great job isn't just about money.
➤ It's about:
Learning: Does the role teach you something new?
Growth: Will it help you progress in your career?
Stability: Does it offer financial and mental security?
If a job doesn't check these boxes, it might be time to reassess.
Hustle, but avoid toxicity
➤ Hard work is essential, but remember:
Hustle is healthy; toxicity is not.
Your mental health and well-being are non-negotiable.
Walk away from environments that drain you. Success should feel empowering, not exhausting.
So,
Build multiple income streams.
Keep growing and learning.
Prioritize your happiness and health.
So, what's your next step? Are you building skills, exploring alternatives, or rethinking your path? Tell me in the comments below!
Let's think about it step by step.
Why Do You Need a Job?
Before jumping into any career path, ask yourself:
➤ Why do I need a job?
Is it for financial stability?
Personal growth?
A sense of purpose?
Jobs can provide structure, income, and learning opportunities. But they are not the only way to achieve these goals. Clarity on your "why" will help you make smarter decisions.
What if the market is not in your favor, which it is right now?
The job market is unpredictable. Recessions, layoffs, and industry shifts happen. So, what's your backup plan?
Here are some alternatives:
Freelancing: Offer your skills to clients worldwide. Platforms like Upwork or Fiverr make this easier than ever.
Starting a Side Hustle: Turn hobbies into income. Think tutoring, content creation, or selling digital products.
Remote Work: Explore temporary or part-time remote jobs to stay flexible while earning.
Your job shouldn't be your only source of income. Think of ways to diversify.
How Can You Acquire More Skills to Turn the Tables?
If the market isn't working for you, invest in yourself.
➤ Here's how:
Take Online Courses: Platforms like Coursera or Udemy offer affordable courses in trending fields.
Network: Attend webinars, join LinkedIn groups, and connect with industry leaders.
Experiment: Take on small projects outside your comfort zone to build confidence and expertise.
Every new skill adds value to your profile and opens new opportunities.
Look for jobs that offer more than a paycheck
A great job isn't just about money.
➤ It's about:
Learning: Does the role teach you something new?
Growth: Will it help you progress in your career?
Stability: Does it offer financial and mental security?
If a job doesn't check these boxes, it might be time to reassess.
Hustle, but avoid toxicity
➤ Hard work is essential, but remember:
Hustle is healthy; toxicity is not.
Your mental health and well-being are non-negotiable.
Walk away from environments that drain you. Success should feel empowering, not exhausting.
So,
Build multiple income streams.
Keep growing and learning.
Prioritize your happiness and health.
So, what's your next step? Are you building skills, exploring alternatives, or rethinking your path? Tell me in the comments below!
👍5✍1
Forwarded from Hanix
iCog Labs AI Internship – 2025 Batch 1
Gain hands-on experience in AI, ML, Robotics, Bioinformatics, Blockchain, and more!
Open to students, graduates & self-taught learners across Africa & Asia.
10 hrs/week in-person for Ethiopians in Ethiopia.
Deadline:July 31
Apply Here.
@HanixJourney
#iCogLabs #AIInternship
Gain hands-on experience in AI, ML, Robotics, Bioinformatics, Blockchain, and more!
Open to students, graduates & self-taught learners across Africa & Asia.
10 hrs/week in-person for Ethiopians in Ethiopia.
Deadline:July 31
Apply Here.
@HanixJourney
#iCogLabs #AIInternship
👍5
Forwarded from AAU Software Engineering community
Summer Opportunity for third year and above students
☀🎓Summer University 2025: Learn, Travel, Change the World!
➡For whom?
Undergraduate students (3rd or 4th year) from universities outside of Russia.
➡What?
Free two-week intensive (July 21 – August 3, 2025):
˗ Masterclasses from expert speakers.
˗ Project work in international teams.
˗ Cultural exchange and excursions.
➡Why you?
˗ Organizers cover flights, accommodation, meals, and all activities.
˗ Level up your skills, add global experience to your resume.
˗ Make friends from around the globe.
➡How to participate?
1. Register on the website summeruniversity.ru. by May 12, 2025.
2. Submit a motivational video (2-3 minutes): explain why you want this project and what ideas you want to implement.
3. Await selection results – announced by May 30!
🗣Don't delay! Places are limited, competition is high. Show you're ready to learn, not just relax – this isn't a vacation!
❗Program details and requirements are available on their website summeruniversity.ru
From SiTE Notice Board
Sharing is caring 🥰
Deadline: May 12, 2025
☀🎓Summer University 2025: Learn, Travel, Change the World!
➡For whom?
Undergraduate students (3rd or 4th year) from universities outside of Russia.
➡What?
Free two-week intensive (July 21 – August 3, 2025):
˗ Masterclasses from expert speakers.
˗ Project work in international teams.
˗ Cultural exchange and excursions.
➡Why you?
˗ Organizers cover flights, accommodation, meals, and all activities.
˗ Level up your skills, add global experience to your resume.
˗ Make friends from around the globe.
➡How to participate?
1. Register on the website summeruniversity.ru. by May 12, 2025.
2. Submit a motivational video (2-3 minutes): explain why you want this project and what ideas you want to implement.
3. Await selection results – announced by May 30!
🗣Don't delay! Places are limited, competition is high. Show you're ready to learn, not just relax – this isn't a vacation!
❗Program details and requirements are available on their website summeruniversity.ru
From SiTE Notice Board
Sharing is caring 🥰
Deadline: May 12, 2025
👍2