Java Hyd Team
746 subscribers
986 photos
39 videos
670 files
690 links
https://teamhydteam.my.canva.site/

Can visit us on our website 😊
Still working on it 😊
Download Telegram
🀣🀣 happy weekend with music 🎼🎢
If you get the logic do update
public class Q29_1 {
static void printAllSubsets(int[] A, int K) {
int N = A.length;
for (int i = 0; i < (1 << N); i++) {
int sum = 0;
for (int j = 0; j < N; j++) {
if ((i & (1 << j)) > 0)
sum += A[j];
}
if (sum == K) {
for (int j = 0; j < N; j++) {
if ((i & (1 << j)) > 0)
System.out.print(A[j] + " ");
}
System.out.println();
}
}
}
public static void main(String[] args) {
int[] A = {0, 1, 2, 3, 5, 6, 7, 11, 12, 14, 20};
int K = 7;
printAllSubsets(A, K);
}
}
Java Hyd Team
What is the solution of this question
package com.Aman;
public class Q27_1 {
static int maxConsecutiveOnes(int x)
{
int count = 0;
while (x!=0)
{
x = (x & (x << 1));
count++;
}
return count;
}
public static void main(String args[])
{
int x = 1000;
System.out.println(maxConsecutiveOnes(x));
}
}
Important questions ⁉️

You must be advised to focus and live in the present moment.

How does it look like and the chart will help you to reflect upon.

Remember πŸ’―

Living a conscious life is very important to achieve your results .
πŸ‘1
Microsoft is hiring for Research Intern
Role: Research Intern
Passout year: 2023/2024/2025
Qualification: BE/B.Tech/ME/M.Tech/MCA/MSC
Salary: 60k - 70k per month
Location: Benguluru



Apply Now: https://careers.microsoft.com/us/en/job/1491041/
When I sat down for my Amazon interview, I thought -

First round hai kya hi puch lenge πŸ’β€β™‚οΈπŸ˜

They asked π“π‘πˆπ„ + 𝐁𝐚𝐜𝐀𝐭𝐫𝐚𝐜𝐀𝐒𝐧𝐠 + 𝐌𝐞𝐦𝐨𝐒𝐳𝐚𝐭𝐒𝐨𝐧 Que πŸ˜‘πŸ˜£

Socha kuch or π’π‘πžπžπ­πšπ₯, nikla kuch or πŸ˜₯

Prepare well and don't assume they will ask easy questions.

#meme #amazon #coding #dsa #maang #interview #programming