Walmart Results are Out!!!!
SELECT
empld,
department,
performance_rating
FROM
Permanent
WHERE
experience >= 5
AND performance_rating > 85
UNION
SELECT
empld,
department,
performance_rating
FROM
Contractual
WHERE
contract_duration >= 12
AND performance_rating > 90
ORDER BY
empld;
Annual salary
Meesho โ
WITH AvailableRooms AS (
SELECT roomId, viewType
FROM Rooms
WHERE availability = 'Available'
)
SELECT g.guestId, g.name, r.roomId
FROM Guests g
JOIN AvailableRooms r
ON g.viewPreference = r.viewType
ORDER BY g.guestId, r.roomId
Hotel room allocation
Meesho โ
SELECT COUNT(DISTINCT ts.rollno) AS Pending
FROM TotalStudents ts
LEFT JOIN offcampus oc ON ts.rollno = oc.rollno AND oc.approved = 'NO'
LEFT JOIN oncampus oncamp ON ts.rollno = oncamp.rollno
LEFT JOIN PG pg ON ts.rollno = pg.rollno
WHERE ts.percentage > 65
AND ts.backlog = 'NO'
AND oncamp.rollno IS NULL
AND pg.rollno IS NULL
AND oc.rollno IS NOT NULL;
yet to be placed
Meesho โ
๐คฎ1
from typing import List
def findMissingOperationIndex(ops: List[str], missingOp: str, currentTop: int) -> int:
n = len(ops)
def simulate_stack(ops_with_insert: List[str]) -> int:
stack = []
for op in ops_with_insert:
if op.startswith("PUSH"):
_, x = op.split()
stack.append(int(x))
elif op == "POP":
if stack:
stack.pop()
return stack[-1] if stack else None
for i in range(n + 1):
ops_with_insert = ops[:i] + [missingOp] + ops[i:]
final_top = simulate_stack(ops_with_insert)
if final_top == currentTop:
return i
return -1
Plum โ
#include <bits/stdc++.h>
using namespace std;
bool isVowel(char a) {
return a == 'a' || a == 'e' || a == 'i' || a == 'o' || a == 'u';
}
long vowelSubstring(string a) {
int b[26] = {0};
int c = 0, d = 0, e = 0;
long f = 0;
while (d < a.length()) {
char g = a[d];
if (isVowel(g)) {
if (b[g - 'a'] == 0) {
e++;
}
b[g - 'a']++;
if (e == 5) {
int h = c;
int i[26];
memcpy(i, b, sizeof(i));
while (e == 5) {
f++;
char j = a[h];
i[j - 'a']--;
if (i[j - 'a'] == 0) {
e--;
}
h++;
}
e = 5;
}
} else {
c = d + 1;
e = 0;
memset(b, 0, sizeof(b));
}
d++;
}
return f;
}
Aptiv โ
๐1
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main(){
ios::sync_with_stdio(false);
cin.tie(0);
ll m, n;
cin >> m >> n;
vector<ll> cars(m);
for(auto &x: cars) cin >> x;
sort(cars.begin(), cars.end());
ll coverage = 0;
int added = 0;
int i = 0;
while(coverage < n){
if(i < m && cars[i] <= coverage + 1){
coverage += cars[i];
i++;
}
else{
ll new_car = coverage + 1;
coverage += new_car;
added++;
if(coverage > n) coverage = n;
}
}
cout << added;
}
using namespace std;
typedef long long ll;
int main(){
ios::sync_with_stdio(false);
cin.tie(0);
ll m, n;
cin >> m >> n;
vector<ll> cars(m);
for(auto &x: cars) cin >> x;
sort(cars.begin(), cars.end());
ll coverage = 0;
int added = 0;
int i = 0;
while(coverage < n){
if(i < m && cars[i] <= coverage + 1){
coverage += cars[i];
i++;
}
else{
ll new_car = coverage + 1;
coverage += new_car;
added++;
if(coverage > n) coverage = n;
}
}
cout << added;
}
๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
Photo
static final int MOD = 1000000007;
public static int getNumPerfectPackaging(int[] prices) {
int n = prices.length;
if (n == 0) return 0;
if (n == 1) return 5;
long[] dpPrev = new long[6]; // index 1 to 5
for(int s = 1; s <=5; s++) {
dpPrev[s] = 1;
}
long[] dp = new long[6];
for(int i =1; i < n; i++) {
for(int s =1; s <=5; s++) {
dp[s] =0;
}
if(prices[i] > prices[i-1]) {
long[] prefix = new long[6];
prefix[0] =0;
for(int s =1; s <=5; s++) {
prefix[s] = (prefix[s-1] + dpPrev[s]) % MOD;
}
for(int s=1; s <=5; s++) {
dp[s] = prefix[s-1];
}
}
else if(prices[i] < prices[i-1]) {
long[] suffix = new long[7];
suffix[6] =0;
for(int s =5; s >=1; s--) {
suffix[s] = (suffix[s+1] + dpPrev[s]) % MOD;
}
for(int s=1; s <=5; s++) {
dp[s] = suffix[s+1];
}
}
else {
long[] prefix = new long[6];
prefix[0] =0;
for(int s =1; s <=5; s++) {
prefix[s] = (prefix[s-1] + dpPrev[s]) % MOD;
}
for(int s=1; s <=5; s++) {
dp[s] = prefix[s];
}
}
for(int s=1; s <=5; s++) {
dpPrev[s] = dp[s] % MOD;
}
}
long total =0;
for(int s=1; s <=5; s++) {
total = (total + dpPrev[s]) % MOD;
}
return (int) total;
}
Amazon โ
๐1
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
SEND RESUME AT
joinus@texarxs.com
joinus@texarxs.com
๐1
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
๐Job Company: CyberNxt Solutions LLP
Job Role: Graduates and Interns for CyberSecurity / NetworkSecurity
Job Location: Mumbai
If you are interested, please feel free to share your CV at- raksha.singh@cybernxt.in
Job Role: Graduates and Interns for CyberSecurity / NetworkSecurity
Job Location: Mumbai
If you are interested, please feel free to share your CV at- raksha.singh@cybernxt.in
def solve(arr, n, num):
if n == 0 or num == 0:
return 0
memo = {}
def dp(i, remaining):
if (i, remaining) in memo:
return memo[(i, remaining)]
if i >= n:
return 0
if remaining < arr[i]:
return 0
pick = arr[i] + dp(i + 2, remaining - arr[i])
skip = dp(i + 1, remaining)
memo[(i, remaining)] = max(pick, skip)
return memo[(i, remaining)]
return dp(0, num)
Samsung โ
๐1
๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
Photo
#include <vector>
#include <string>
#include <sstream>
#include <algorithm>
#include <cctype> // For std::tolower
using namespace std;
const int ALPHABET_SIZE = 26;
struct TrieNode {
struct TrieNode* children[ALPHABET_SIZE];
bool isEndOfWord;
TrieNode() {
isEndOfWord = false;
for (int i = 0; i < ALPHABET_SIZE; i++) {
children[i] = nullptr;
}
}
~TrieNode() {
for (int i = 0; i < ALPHABET_SIZE; i++) {
delete children[i];
}
}
};
void insertWord(TrieNode* root, const string& word) {
TrieNode* current = root;
for (char c : word) {
// Convert character to lowercase before processing
c = tolower(c);
// Only process lowercase letters
if (c >= 'a' && c <= 'z') {
int index = c - 'a';
if (!current->children[index]) {
current->children[index] = new TrieNode();
}
current = current->children[index];
}
}
current->isEndOfWord = true;
}
void collectWords(TrieNode* node, string currentWord, vector<string>& result) {
if (node->isEndOfWord) {
result.push_back(currentWord);
}
for (int i = 0; i < ALPHABET_SIZE; i++) {
if (node->children[i]) {
collectWords(node->children[i], currentWord + char('a' + i), result);
}
}
}
vector<string> solution(const string& words) {
TrieNode* root = new TrieNode();
istringstream iss(words);
string word;
while (iss >> word) {
insertWord(root, word);
}
vector<string> result;
collectWords(root, "", result);
sort(result.begin(), result.end(),
[](const string& a, const string& b) {
if (a.length() != b.length()) {
return a.length() < b.length();
}
return a < b;
});
delete root;
return result;
}
int main() {
string input = "Hello world, this is a Trie example!";
vector<string> words = solution(input);
for (const string& word : words) {
cout << word << endl;
}
return 0;
}
Cohesity โ
from collections import Counter
def solve(a):
b = Counter(a)
c = []
d = ''
for e in sorted(b.keys()):
f = b[e]
if f % 2 == 1:
if not d:
d = e
f -= 1
c.append(e * (f // 2))
g = ''.join(c)
return g + d + g[::-1]
h = int(input().strip())
i = []
for _ in range(h):
j = input().strip()
i.append(solve(j))
print("\n".join(i))
MAQ Software โ
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Company: GXS Bank
Role: Software Engineering Internship
Batch: 2025, 2026, 2027
https://www.linkedin.com/jobs/view/4071854518
Role: Software Engineering Internship
Batch: 2025, 2026, 2027
https://www.linkedin.com/jobs/view/4071854518
Linkedin
GXS Bank hiring Software Engineering Internship in Bengaluru, Karnataka, India | LinkedIn
Posted 2:14:41 AM. About usGRXST Software Services Pvt Ltd, part of the esteemed GXS Bank Pte Ltd group of companiesโฆ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)
Company : SupraOracles
Program: Career Academy
Batch: 2027
Rewards: Mentorship + Skills + Interview Opportunity at Paypal
https://boards.greenhouse.io/supraoracles/jobs/5191557004
Program: Career Academy
Batch: 2027
Rewards: Mentorship + Skills + Interview Opportunity at Paypal
https://boards.greenhouse.io/supraoracles/jobs/5191557004
boards.greenhouse.io
Research Internship (Blockchain Storage)
Remote
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Company: SuperKalam (YC W23)
Role: Backend Engineer (Internship)
Stipend: โน30K - โน47K INR
Location: Bengaluru, KA, IN / Remote (Bengaluru, KA, IN)
https://www.ycombinator.com/companies/superkalam/jobs/rxajsHH-backend-engineer-internship
Role: Backend Engineer (Internship)
Stipend: โน30K - โน47K INR
Location: Bengaluru, KA, IN / Remote (Bengaluru, KA, IN)
https://www.ycombinator.com/companies/superkalam/jobs/rxajsHH-backend-engineer-internship
Y Combinator
Backend Engineer (Internship) at SuperKalam
This is a position for a super pumped intern who has good engineering fundamentals and wants to work on diverse projects (personalisation, recommendation, scale, etc) in a fast-pace environment\
\
**Application form:** <https://forms.gle/RV48eArCpe8p6P3SA>โฆ
\
**Application form:** <https://forms.gle/RV48eArCpe8p6P3SA>โฆ