allcoding1
27.6K subscribers
2.2K photos
2 videos
77 files
853 links
Download Telegram
def minimumCost(price):
    n = len(price)
    price.append(0)
    ans = float('inf')
    last = {price[0]: 0}
    for i in range(1, n):
        v = price[i]
        price[i] += price[i - 1]
        if last.get(v) != None:
            ans = min(ans, price[i] - price[last[v]] + v)
        last[v] = i
    return ans if ans != float('inf') else -1

n = int(input())
price = list(map(int,input().split(' ')))
print(minimumCost(price))

Python 3
Amazon

Telegram:- @allcoding1
👍11
string getLongestRegex(string a, string b, string c)
{
  const size_t n = a.size();
  int idx = -1;
  for (int i = 0; i < n; i++) {
    if (c[i] != a[i] && c[i] != b[i]) { idx = i; }
  }
  if (idx == -1) return "-1";
  string res;
  for (int i = 0; i < n; i++) {
   
    if (i == idx) {
      string cur = "[";
      for (int j = 'A'; j <= 'Z'; j++)  if (j != c[i]) cur += j;
      cur += "]";
      res += cur;
    } else {
      res += "[ABCDEFGHIJKLMNOPQRSTUVWXYZ]";
    }
  }
  return res;
}

C++
Amazon

Telegram:- @allcoding1
👍131
🎯Infosys Hiring Power Programmer

Batch - 2022 and below Batch
Skills Set - Java Full Stack
Apply Now:- career.infosys.com/jobdesc?sourceId=4003&jobReferenceCode=INFSYS-EXTERNAL-160368

Telegram:- @allcoding1
👍2
🎯Amazon Hiring SME

Batch - 2021/2022/2023
Degree - BE, BSC, MCA, Msc
Apply now:- amazon.jobs/en/jobs/2442412/subject-matter-expert

Telegram:- @allcoding1
👍32👏1
🎯Optum Walk-in Drive 2023 For Chat Support

Location: Hyderabad

Qualification: Any Graduate

Work Experience: 0 – 1 years

Walk-In Date: 20th October 2023

Apply now:-

https://www.naukri.com/job-listings-walk-in-for-freshers-chat-support-united-health-group-optum-hyderabad-secunderabad-telangana-0-to-1-years-300623004099?source=jobscoupe.com


Telegram:- @allcoding1
👍9
🎯Tech Mahindra Recruitment 2023 For Customer Service Associate

Location: Bangalore

Qualification: Undergraduate / Graduate / Post Graduate

Work Experience: Freshers / Experience

Apply now:-

https://www.naukri.com/job-listings-tech-mahindra-is-hiring-csa-international-voice-process-bengaluru-tech-mahindra-bangalore-bengaluru-0-to-4-years-091023002447?source=jobscoupe.com

Telegram:- @allcoding1
👍3
🎯DHL Off Campus Hiring For Software Engineer | Chennai | 4.5 LPA

Job Role : Software Engineer
Education : BE/BTech/MCA/MTech
Job Location : Chennai
Package : 4.5 LPA

Apply Now:- www.allcoding1.com

Telegram:- @allcoding1
👍3
🎯Hitachi GlobalLogic Hiring Analyst | Freshers to 2 Years | Any Graduate | 4 LPA

Job Role:-Associate Analyst
Qualification:-Any Graduate
Location:-Chennai
Salary/CTC:-5 LPA

Apply Now:- www.allcoding1.com

Telegram:- @allcoding1
👍9
Kpit exam students

Questions send a

join now 👇
@kpit_exam_Ans
String repetition of input abbbccdeab

C language

Kpit exam Ans

Telegram:- @allcoding1
👍3
Camelcase

C++ language

Kpit exam Ans

Telegram:- @allcoding1
🎯Hitachi GlobalLogic Hiring Analyst | Freshers to 2 Years | Any Graduate | 4 LPA

Job Role:-Associate Analyst
Qualification:-Any Graduate
Location:-Chennai
Salary/CTC:-5 LPA

Apply Now:- www.allcoding1.com

Telegram:- @allcoding1
👍1👏1
🎯BYJU’s Off Campus Drive 2023 for BDE | Any Graduate | Across India

Job Role : Business Development Associate
Qualification : Any Graduate
Experience : Freshers
Salary : Rs 12,000 to Rs 20,000/Month

Apply Now:- www.allcoding1.com

Telegram:- @allcoding1_official
👍4
🎯Deloitte Biggest Hiring | Open Talent Newtwork | Analyst Trainee | Salary:- 4 LPA

Job Role:- Analyst-Trainee
Qualification:- B.E./B.Tech
Salary:- 4 LPA

Apply Now:- www.allcoding1.com

Telegram:- @allcoding1
👍4
🎯 TCS NQT-National Qualifier Test 2023 – Gateway for Top Jobs | 3-18 LPA

Test : National Qualifier Test (NQT)
Qualification : B.E/B.Tech/Any Degree/Diploma
Batch : 2018-2024
Salary : 3-18 LPA

Apply now:- www.allcoding1.com

Telegram:- @allcoding1
👎2👍1🥰1
🎯Accenture Mega Off Campus Drive Hiring 2019-2023 Batch | 4.5 LPA

Job Role : Application Development Associate
Qualification : B.E/B.Tech/M.E/M.Tech, MCA, M.Sc
Batch : 2019,2020,2021,2022,2023
Salary : INR 4.5 LPA

Apply Now:- www.allcoding1.com

Telegram:- @allcoding1
👍8👏2