LeetCode Weekly Solutions
7.28K subscribers
34 photos
11 files
101 links
Latest Jobs and Internships are regularly uploaded here : https://t.me/placementlelo

If you want any other exam answers for free : @exam_cheating_bot

Collaborations: @growth_admin
Download Telegram
Send your questions in this group 👇🏻
https://telegram.me/flipkart_grid_exam_solutions
B - To allow the network to model nonlinear relationships.

https://telegram.me/+_hn3cBQVbGliYTI9
Flipkart Grid 6.0 All 100% Correct Answers Uploaded 👇🏻
https://youtu.be/3-Y90jPqoNw
https://youtu.be/3-Y90jPqoNw

Share this with your friends 😇
Flipkart Grid 6.0 Results are Out !!

Check your Result here - https://t.me/PLACEMENTLELO/587
Telegram might get ban !

So, follow our WhatsApp Channel for backup 👇🏻
https://whatsapp.com/channel/0029Va4bojk90x2rq1LgdD1a

Must Follow
We will do a giveaway next week of ChatGPT-4 Plus to 100 students on WhatsApp.

Follow our WhatsApp
channel 👇🏻
https://whatsapp.com/channel/0029Va4bojk90x2rq1LgdD1a
LTI Mindtree Exam Pattern + Previous Year Paper.pdf
21.3 MB
LTI Mindtree Exam Paper + Exam Pattern for 8 September Hiring Assement Drive

Share this with your friends 😇
LTI Mindtree Discussion Group 👇
https://telegram.me/+6bFEm4J03OVkNDFl
Best Competitive Programming and Coding Groups:

CodeChef Group 👇
https://t.me/codechef_answers

Codeforces Group 👇
https://t.me/codeforces_answers

Leetcode Group👇
https://t.me/leetcode_answers

Coding Ninjas Group 👇
https://t.me/+y6lKe5QXT1w2ODhl

Geeks For Geeks Group👇
https://t.me/gfg_answers

Newton School Group 👇
https://t.me/newton_school_answers

Atcoder Group 👇
https://t.me/atcoder_answers
IPV6 Code
Java
IBM

https://telegram.me/+Q_kf6B6EFexiNmU9

public static String convertToIpv6(String ipv4Address) {
String[] octets = ipv4Address.split("\\.");
if (octets.length != 4) {
return "Invalid input";
}

if (octets[0].equals("127")) {
return "::1";
}

StringBuilder ipv6 = new StringBuilder("::FFFF:");

try {
for (int i = 0; i < 4; i++) {
int octet = Integer.parseInt(octets[i]);
if (octet < 0 || octet > 255) {
return "Invalid input";
}
String hex = String.format("%02X", octet);
ipv6.append(hex);
if (i == 1) {
ipv6.append(":");
}
}
} catch (NumberFormatException e) {
return "Invalid input";
}

return ipv6.toString();
}

IPV6 Code
Java
IBM

https://telegram.me/+Q_kf6B6EFexiNmU9
Triangle Code
C++
IBM

https://telegram.me/+Q_kf6B6EFexiNmU9

double calculate_area(int a, int b, int c) {
double p = (a + b + c) / 2.0;
return (p * (p - a) * (p - b) * (p - c));
}

int compare(const void* a, const void* b) {
triangle* t1 = (triangle*)a;
triangle* t2 = (triangle*)b;
if (t1->area < t2->area)
return -1;
else if (t1->area > t2->area)
return 1;
else
return 0;
}

int sort_by_area(triangle* tr, int n) {

if (tr == NULL || n <= 0) {
return -1;
}
for (int i = 0; i < n; i++) {
tr[i].area = calculate_area(tr[i].a, tr[i].b, tr[i].c);
}
qsort(tr, n, sizeof(triangle), compare);

return 0;
}

Triangle Code
C++
IBM

https://telegram.me/+Q_kf6B6EFexiNmU9