๐—–๐—ฆ ๐—”๐—น๐—ด๐—ผ ๐Ÿ’ป ๐ŸŒ ใ€Ž๐—–๐—ผ๐—บ๐—ฝ๐—ฒ๐˜๐—ถ๐˜๐—ถ๐˜ƒ๐—ฒ ๐—ฃ๐—ฟ๐—ผ๐—ด๐—ฟ๐—ฎ๐—บ๐—บ๐—ถ๐—ป๐—ดใ€
9.61K subscribers
5.59K photos
3 videos
95 files
10.1K links
๐ŸšฉMain Group - @SuperExams
๐Ÿ“Job Updates - @FresherEarth

๐Ÿ”ฐAuthentic Coding Solutions(with Outputs)
โš ๏ธDaily Job Updates
โš ๏ธHackathon Updates & Solutions

Buy ads: https://telega.io/c/cs_algo
Download Telegram
def calculate_length(encrypted_data, I, E):
 
  results = []

  for start, end in zip(I, E):
    length = 0
    i = start
    multiplier = 1

 
    while i <= end:
    
      if encrypted_data[i].isalpha():
        length += multiplier
     
      else:
        multiplier = int(encrypted_data[i]) * 10**(len(str(multiplier)) - 1)
      i += 1

 
    results.append(length)

  return results

DE Shaw โœ…
๐—–๐—ฆ ๐—”๐—น๐—ด๐—ผ ๐Ÿ’ป ๐ŸŒ ใ€Ž๐—–๐—ผ๐—บ๐—ฝ๐—ฒ๐˜๐—ถ๐˜๐—ถ๐˜ƒ๐—ฒ ๐—ฃ๐—ฟ๐—ผ๐—ด๐—ฟ๐—ฎ๐—บ๐—บ๐—ถ๐—ป๐—ดใ€
Photo
#include<bits/stdc++.h>
using namespace std;
#define ll long long int
const int sz = 1e5 + 5, mod = 1e9 + 7;
long long solve(vector<int>cost, int mn) {
int n = cost.size();
for(int i = 1; i < n; i++) {
  cost[i] = min(cost[i], 2 * cost[i - 1]);
}
if(n < 2) {
  long long ans = -1;
  for(int i = 0; i < (1 << n); i++) {
   long long cst = 0;
   long long wt = 0;
   for(int j = 0; j < n; j++) {
    if((i >> j)&1) {
     cst += cost[j];
     wt += (1 << j);
    }
   }
   if(wt >= mn) {
    if(ans == -1 || cst < ans) ans = cst;
   }
  }
  return ans;
}
int n1 = n / 2;
int n2 = n - n1;
long long ans = -1;
std::vector<long long int> v1(1 << n1), v2;
for(int i = 0; i < (1 << n1); i++) {
  long long cst = 0;
  long long wt = 0;
  for(int j = 0; j < n1; j++) {
   if((i >> j)&1) {
    cst += cost[j];
    wt += (1 << j);
   }
  }
  if(i >= mn) {
   if(ans == -1 || ans > cst) ans = cst;
  }

  v1[i] = cst;
  //cout << i << " " <<v1[i] << "\n";
}
int lst = (1 << n1) - 2;
for(int i = lst; i >= 0; i--)
  v1[i] = min(v1[i], v1[i + 1]);
lst++;
for(int i = 0; i < (1 << n2); i++) {
  long long cst = 0;
  long long wt = 0;
  for(int j = 0; j < n2; j++) {
   if((i >> j)&1) {
    cst += cost[j + n1];
    wt += (1 << (j + n1));
   }
  }
  if(wt >= mn) {
   if(ans == -1 || ans > cst) ans = cst;
  } else if(lst + wt >= mn){
   cst += v1[mn - wt];
   //if(cst < 37) cout << v1[2] << "\n";
   if(ans == -1 || ans > cst) ans = cst;
  }
}
return ans;

}
int32_t main() {
    ios_base::sync_with_stdio(false);
    cin.tie(0);
    cout << solve({2, 5, 7, 11, 25}, 26) << "\n";
    return 0;
}

DE Shaw โœ…
๐Ÿ‘Ž4
We at Spinny are hiring for Talent Acquisition, preferably someone who can speak Kannada, for front-line hiring at our headquarters in Gurugram. Freshers are also encouraged to apply.

Additionally, we are hiring a TA proficient in Hindi and English.
Interested candidates can share their CV at the email address provided below:
trisha.gupta@spinny.com
Reliance Brands Limited is hiring summer interns in Mumbai, Bangalore and Gurgaon for the following roles:

- Sourcing
- Design for Designer Wear Brands
- Operations
- HR

If you're interested or know someone who might be, please share resume at sneh.sachan@ril.com.

Only relevant candidates will be contacted.
Urgent Finance Freshers job opportunity

Financial Analyst
Location: Gurgaon
Experience: 0-2 Years
Education: B.com/M.com/MBA-Finance

"Subject Line: Application for Financial Analyst"

Roles & Responsibilities:
Resources will be involved in analyzing databases and streamlining investment Dashboard portal requirements for Shikhar and other pool investments mainly.


Interested candidates send your resume to Mahesh.N@lancesoft.in