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
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