#include <bits/stdc++.h>
using namespace std;
const long long MOD = 1e9+7;
int main()
{
int t;
cin >> t;
while(t--)
{
int N;
string S;
cin >> N >> S;
vector<vector<long long>> dp(N + 1, vector<long long>(N + 1, 0));
dp[0][0] = 1;
for (int i = 0; i <= N; i++)
{
for (int j = 0; j <= i; j++)
{
if (S[i] == '(' || S[i] == '?')
{
dp[i + 1][j + 1] += dp[i][j];
dp[i + 1][j + 1] %= MOD;
}
if (S[i] == ')' || S[i] == '?')
{
if (j > 0)
{
dp[i + 1][j - 1] += dp[i][j];
dp[i + 1][j - 1] %= MOD;
}
}
}
}
cout << dp[N][0] << endl;
}
}
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
CyberArk is hiring for Associate Software Engineer
Expected Salary: 6-12 LPA
Apply here:
https://jobs.smartrecruiters.com/Cyberark1/743999991207385-associate-software-engineer
Expected Salary: 6-12 LPA
Apply here:
https://jobs.smartrecruiters.com/Cyberark1/743999991207385-associate-software-engineer
Cyberark
Cyberark is looking for a Associate Software Engineer in Hyderabad, India
Attend all training programs and completing all tasks set by the supervisor and assisting other trainees wherever possible.Ability to design and code the right solutions starting with broadly defi...
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Engagedly is hiring for DevOps Engineer (0-1 years)
Expected Salary: 6-12 LPA
Apply here:
https://engagedly.freshteam.com/jobs/ClkOybVRjER4/devops-engineer
Expected Salary: 6-12 LPA
Apply here:
https://engagedly.freshteam.com/jobs/ClkOybVRjER4/devops-engineer
Freshteam
Hiring for DevOps Engineer for Bengaluru - Entry level
Posted by : Engagedly | AWS,DOCKER,CI/CD
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Ksolves hiring Freshers ( with 6 months of traning in SAP-ABAP) .
Must be good in communication and Programming
Location :- Indore or Noida
Pls. Share your resume at Mohit.Kumar@Ksolves.com
Must be good in communication and Programming
Location :- Indore or Noida
Pls. Share your resume at Mohit.Kumar@Ksolves.com
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
India Blockchain Summit 2024 is looking for Backend Developer Intern - Remote
Apply here:
https://linkedin.com/jobs/view/3938450647/
Apply here:
https://linkedin.com/jobs/view/3938450647/
Linkedin
India Blockchain Summit 2024 hiring Backend Developer Intern in India | LinkedIn
Posted 10:40:39 AM. Title: Backend Developer Intern at India Blockchain SummitLocation: RemoteJob Type: InternshipAboutโฆSee this and similar jobs on LinkedIn.
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Linkedin
Vikalp Chawla on LinkedIn: #referral #referrals #hiringalert #askforreferral #sdet #qaโฆ | 283 comments
[Closed - Due to huge response already have a lot of connection requests and Dms , Wont be able to refer more People ]
Referral Alert !
DM for Referral forโฆ | 283 comments on LinkedIn
Referral Alert !
DM for Referral forโฆ | 283 comments on LinkedIn
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Trimble is hiring for Associate DevOps Engineer
Expected Salary: 5-10 LPA
Apply here:
https://trimble.wd1.myworkdayjobs.com/en-US/TrimbleCareers/job/India---Chennai/Associate-DevOps-Engineer_R44279
Expected Salary: 5-10 LPA
Apply here:
https://trimble.wd1.myworkdayjobs.com/en-US/TrimbleCareers/job/India---Chennai/Associate-DevOps-Engineer_R44279
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Klenty | Data Engineer Intern
https://in.linkedin.com/jobs/view/data-engineer-intern-at-klenty-3937835724?position=4&pageNum=0&refId=ePx5WubAJwjs7Z7bq7i9Ag%3D%3D&trackingId=Z6GadSckHLG8ilioya%2FYSg%3D%3D&trk=public_jobs_jserp-result_search-card
https://in.linkedin.com/jobs/view/data-engineer-intern-at-klenty-3937835724?position=4&pageNum=0&refId=ePx5WubAJwjs7Z7bq7i9Ag%3D%3D&trackingId=Z6GadSckHLG8ilioya%2FYSg%3D%3D&trk=public_jobs_jserp-result_search-card
Linkedin
Klenty hiring Data Engineer Intern in Chennai, Tamil Nadu, India | LinkedIn
Posted 11:42:14 AM. Job Description:Do you relish the opportunity to spearhead the development of data architectureโฆSee this and similar jobs on LinkedIn.
๐1
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Hello Everyone...!!!
Great opportunity for freshers #freshers
We are conducting Mass Hiring Off-campus drive for Freshers !!!
This is your opportunity to kickstart your career!
Eligibility criteria: B.E., B. Tech, MCA - 2023 and 2024 passed out batches. Only CSE & IT, First class with no backlogs.
Candidates with knowledge of Java, Spring Boot, and Java Microservices will be an added advantage. Certified candidates are preferred.
Zeal to learn new technologies, Good Attitude, Excellent communication (oral & verbal).
Experience: Fresher
Location: Hyderabad
Work Mode: WFO
Roles and Responsibilities:
* Design, build, and maintain efficient, reusable, and reliable Java code.
* Establish & Manage Software Configuration Management System.
* Analyze the system logs and initiate necessary measures to ensure high availability for the system.
* Carryout simulation and test for real jobs on test environment
Support troubleshooting of application software remotely on customer locations, as & when required
* Provide technical assistance against any software bugs encountered while installation, testing and commissioning at site.
Desired Candidate Profile:
* Having B.E/B.Tech/MCA from recognized University in 2023 & 2024.
* Freshers are invited to apply
* Excellent communication skills.
* High proficiency level in the English language (written and spoken)
* Good interpersonal, verbal, and written communication skills
* Demonstrated proficiency in product lines that you have worked
* Strong problem-solving skills ability to deliver quality code first time right
* Should have basic knowledge of OOPS concepts, multi-threading, core JAVA concepts and coding.
#freshers #freshershiring #hiringfresher
Interested candidates can share me their resume on duresh.p@federalsoftsystems.com
Thanks & Regards,
Duresh Patnaik,
7008935694,
Executive - Talent Acquisition
Great opportunity for freshers #freshers
We are conducting Mass Hiring Off-campus drive for Freshers !!!
This is your opportunity to kickstart your career!
Eligibility criteria: B.E., B. Tech, MCA - 2023 and 2024 passed out batches. Only CSE & IT, First class with no backlogs.
Candidates with knowledge of Java, Spring Boot, and Java Microservices will be an added advantage. Certified candidates are preferred.
Zeal to learn new technologies, Good Attitude, Excellent communication (oral & verbal).
Experience: Fresher
Location: Hyderabad
Work Mode: WFO
Roles and Responsibilities:
* Design, build, and maintain efficient, reusable, and reliable Java code.
* Establish & Manage Software Configuration Management System.
* Analyze the system logs and initiate necessary measures to ensure high availability for the system.
* Carryout simulation and test for real jobs on test environment
Support troubleshooting of application software remotely on customer locations, as & when required
* Provide technical assistance against any software bugs encountered while installation, testing and commissioning at site.
Desired Candidate Profile:
* Having B.E/B.Tech/MCA from recognized University in 2023 & 2024.
* Freshers are invited to apply
* Excellent communication skills.
* High proficiency level in the English language (written and spoken)
* Good interpersonal, verbal, and written communication skills
* Demonstrated proficiency in product lines that you have worked
* Strong problem-solving skills ability to deliver quality code first time right
* Should have basic knowledge of OOPS concepts, multi-threading, core JAVA concepts and coding.
#freshers #freshershiring #hiringfresher
Interested candidates can share me their resume on duresh.p@federalsoftsystems.com
Thanks & Regards,
Duresh Patnaik,
7008935694,
Executive - Talent Acquisition
vector<vector<int>> solution(vector<vector<int>> image, int radius) {
int rows = image.size();
int cols = image[0].size();
vector<vector<int>> blurred_image(rows, vector<int>(cols, 0));
for (int i = 0; i < rows; ++i) {
for (int j = 0; j < cols; ++j) {
vector<int> neighbors;
for (int r = max(0, i - radius); r < min(rows, i + radius + 1); ++r) {
for (int c = max(0, j - radius); c < min(cols, j + radius + 1); ++c) {
if (r != i || c != j) {
neighbors.push_back(image[r][c]);
}
}
}
if (!neighbors.empty()) {
int mean_neighbors = accumulate(neighbors.begin(), neighbors.end(), 0) / neighbors.size();
blurred_image[i][j] = (image[i][j] + mean_neighbors) / 2;
} else {
blurred_image[i][j] = image[i][j];
}
}
}
return blurred_image;
}
Autodesk โ
int rows = image.size();
int cols = image[0].size();
vector<vector<int>> blurred_image(rows, vector<int>(cols, 0));
for (int i = 0; i < rows; ++i) {
for (int j = 0; j < cols; ++j) {
vector<int> neighbors;
for (int r = max(0, i - radius); r < min(rows, i + radius + 1); ++r) {
for (int c = max(0, j - radius); c < min(cols, j + radius + 1); ++c) {
if (r != i || c != j) {
neighbors.push_back(image[r][c]);
}
}
}
if (!neighbors.empty()) {
int mean_neighbors = accumulate(neighbors.begin(), neighbors.end(), 0) / neighbors.size();
blurred_image[i][j] = (image[i][j] + mean_neighbors) / 2;
} else {
blurred_image[i][j] = image[i][j];
}
}
}
return blurred_image;
}
Autodesk โ
def solution(board):
board = list(map(list, zip(*board)))
obstacles_to_remove = 0
lowest_figure = len(board[0]) - 1
for col in range(len(board)):
if '*' in board[col]:
lowest_part = board[col].index('*')
lowest_figure = min(lowest_figure, lowest_part)
obstacles_to_remove += board[col][:lowest_part].count('#')
return obstacles_to_remove
Autodesk โ
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Wellfound
Software Development Intern (Cyber Security/DevOps Focus) at Cyberlence โข Bangalore Urban
Cyberlence is hiring a Software Development Intern (Cyber Security/DevOps Focus) in Bangalore Urban - Apply now on Wellfound!
string solution(vector<string> commands) {
unordered_map<string, unordered_set<string>> bucket_files;
string current_bucket;
for (const string& command : commands) {
istringstream iss(command);
string action, name;
iss >> action >> name;
if (action == "goto") {
current_bucket = name;
} else if (action == "create") {
bucket_files[current_bucket].insert(name);
}
}
string max_bucket;
size_t max_files = 0;
for (const auto& entry : bucket_files) {
if (entry.second.size() > max_files) {
max_files = entry.second.size();
max_bucket = entry.first;
}
}
return max_bucket;
}
โค1
def solution(queries, diff):
numbers = {}
output = []
for query in queries:
if "+" in query:
number = int(query.split("+")[1])
numbers[number] = numbers.get(number, 0) + 1
else:
number = int(query)
del numbers[number]
count = 0
for number in numbers:
count += numbers.get(number - diff, 0) * numbers.get(number + diff, 0)
output.append(count)
return output
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
HCLTech is hiring for Software Engineer/Software Developer
Expected Salary: 4-6 LPA
Batch: 2021-2023
Apply here:
https://linkedin.com/posts/activity-7203311339782500352-cjE9/
Expected Salary: 4-6 LPA
Batch: 2021-2023
Apply here:
https://linkedin.com/posts/activity-7203311339782500352-cjE9/
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Meta is hiring Software Engineers for its London Office
Referral Form :
https://docs.google.com/forms/d/1Hx_CAEqQyzSxRnYZxq_Sa9KE2Jn7HWgAs6xXCMSIRj4
Referral Form :
https://docs.google.com/forms/d/1Hx_CAEqQyzSxRnYZxq_Sa9KE2Jn7HWgAs6xXCMSIRj4
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
TCS BSc Ignite and Smart Hiring 2024:
Graduation Year: 2023 / 2024
Eligibility: BCA, B.Sc (IT, Computer Science, Mathematics, Data Science, Statistics, Physics, Chemistry, Electronics, Cyber Security, Biochemistry), B.Voc in CS/IT
CTC for Ignite - 2.8 LPA
CTC for Smart - 1.9 LPA
Register Now: https://www.tcs.com/careers/india/tcs-smart-hiring-2024
Last Date to Regsiter: 24th June
Graduation Year: 2023 / 2024
Eligibility: BCA, B.Sc (IT, Computer Science, Mathematics, Data Science, Statistics, Physics, Chemistry, Electronics, Cyber Security, Biochemistry), B.Voc in CS/IT
CTC for Ignite - 2.8 LPA
CTC for Smart - 1.9 LPA
Register Now: https://www.tcs.com/careers/india/tcs-smart-hiring-2024
Last Date to Regsiter: 24th June
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Company Name: Tata1mg
๐ Job Title: SDE 1 (Frontend)
โ๐ป YOE: 0-2 years
โก๏ธ Apply: https://1mg.darwinbox.in/ms/candidate/careers/a66321e35c853c
Please do share in your college grps and in case you are applying please react on this post:) ๐โค๏ธ
๐ Job Title: SDE 1 (Frontend)
โ๐ป YOE: 0-2 years
โก๏ธ Apply: https://1mg.darwinbox.in/ms/candidate/careers/a66321e35c853c
Please do share in your college grps and in case you are applying please react on this post:) ๐โค๏ธ
๐1
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
๐จJob Opening Updates๐จ
Company โ Oracuz Infotech Pvt Ltd
Role โ Data Science Intern
Exp. โ Fresher
Apply Here โ https://www.simplyhired.co.in/job/U44tuZ0b1xFLAqMw2dNuNWGetG7pNdEKVbIf7HbUqEq0hcb0X9ww6Q
Company โ Conscript HR Advisors Private Limited
Role โ Business Analytics Intern
Exp. โ Fresher
Apply Here โ https://internshala.com/internship/details/work-from-home-part-time-business-analytics-internship-at-conscript-hr-advisors-private-limited1717387959?utm_source=cp_link&referral=web_share
Company โ EMERGEiQ
Role โ Data Scientist
Exp. โ Fresher
Apply Here โ https://www.linkedin.com/jobs/view/3938463825
Company โ Oracuz Infotech Pvt Ltd
Role โ Data Science Intern
Exp. โ Fresher
Apply Here โ https://www.simplyhired.co.in/job/U44tuZ0b1xFLAqMw2dNuNWGetG7pNdEKVbIf7HbUqEq0hcb0X9ww6Q
Company โ Conscript HR Advisors Private Limited
Role โ Business Analytics Intern
Exp. โ Fresher
Apply Here โ https://internshala.com/internship/details/work-from-home-part-time-business-analytics-internship-at-conscript-hr-advisors-private-limited1717387959?utm_source=cp_link&referral=web_share
Company โ EMERGEiQ
Role โ Data Scientist
Exp. โ Fresher
Apply Here โ https://www.linkedin.com/jobs/view/3938463825
Internshala
Business Analytics Work From Home Part Time Internship at Conscript HR Advisors Private Limited
Selected intern's day-to-day responsibilities include:
1. Interact with business users to understand their problems and needs
2. Document and analyze business needs and requirements and communicate to the team
3. Develop requirements specificationsโฆ
1. Interact with business users to understand their problems and needs
2. Document and analyze business needs and requirements and communicate to the team
3. Develop requirements specificationsโฆ