ar
Feedback

لا تقع ضحية للمخادعين! تيليمتريو يكتشف ويُميّز هذه القنوات 👉 إذا كنت تريد رؤية العلامة، اشترك

Infosys | IBM | Accenture Exam Help

Infosys | IBM | Accenture Exam Help

الذهاب إلى القناة على Telegram

Any Online Assessment Help Available ✅ Admin - @Codehelpdesk 😇 ⭕ Daily Jobs and Internships Updates ⭕ Any Online Assesment Help Available ⭕ IT/ Non-IT Job Updates

إظهار المزيد
4 685
المشتركون
لا توجد بيانات24 ساعات
-57 أيام
+930 أيام
أرشيف المشاركات
IBM Java Developer Help Done ✅ All test cases passed ✨ Contact immediately 👇🏻 @codehelpdesk 😇
+1
IBM Java Developer Help Done ✅ All test cases passed ✨ Contact immediately 👇🏻 @codehelpdesk 😇
07 يوليو 2024, 08:41

Athlete Sports Code - Accenture hackdiva ✅ 12/12 passed ✨
Athlete Sports Code - Accenture hackdiva ✅ 12/12 passed ✨
07 يوليو 2024, 07:20

Athletics code done - Accenture Hackdiva ✅ For 12/12 passed code Contact immediately 👇🏻 @codehelpdesk 😇
Athletics code done - Accenture Hackdiva ✅ For 12/12 passed code Contact immediately 👇🏻 @codehelpdesk 😇
07 يوليو 2024, 06:48

Hey guys, 💢I posted As many codes as possible, Still there few codes left that I didn't posted, I cannot post every code because there many codes 💢 Hope these codes helped you ❤️ React with some emojis to show your support 🤗 Thank you, @codehelpdesk
07 يوليو 2024, 04:52

Nodes reordering - Infosys ✅
Nodes reordering - Infosys ✅
07 يوليو 2024, 04:17

Minimum cost palindrome - Infosys ✅
Minimum cost palindrome - Infosys ✅
07 يوليو 2024, 04:16

Monster Tree - Infosys 3 test cases passing ✅
Monster Tree - Infosys 3 test cases passing ✅
07 يوليو 2024, 04:08

Xr farming - Infosys ✅
Xr farming - Infosys ✅
07 يوليو 2024, 04:00

Divide Tree - Infosys ✅
Divide Tree - Infosys ✅
07 يوليو 2024, 03:48

import sys import math def get_ans(N, A): dp = [1] * N gcd_dp = [A[i] for i in range(N)] for i in range(N): for j in range(i): if A[i] >= A[j] and math.gcd(gcd_dp[j], A[i]) > 1: if dp[j] + 1 > dp[i]: dp[i] = dp[j] + 1 gcd_dp[i] = math.gcd(gcd_dp[j], A[i]) elif dp[j] + 1 == dp[i]: gcd_dp[i] = max(gcd_dp[i], math.gcd(gcd_dp[j], A[i])) result = 0 for i in range(N): if gcd_dp[i] > 1: result = max(result, dp[i]) return result def main(): input = sys.stdin.read data = input().split() N = int(data[0]) A = [int(data[i + 1]) for i in range(N)] result = get_ans(N, A) print(result) if name == "main": main() ❌ LI GCD ❌
07 يوليو 2024, 03:26

import sys import collections import bisect MOD = 10**9 + 7 def get_ans(N, M, A, E, P, Q): tree = collections.defaultdict(list) for u, v in E: tree[u].append(v) tree[v].append(u) def find_path(u, v, parent): stack = [(u, [u])] visited = set() while stack: node, path = stack.pop() if node == v: return path visited.add(node) for neighbor in tree[node]: if neighbor not in visited and neighbor != parent[node]: parent[neighbor] = node stack.append((neighbor, path + [neighbor])) return [] def lis(arr): dp = [] for num in arr: pos = bisect.bisect_left(dp, num) if pos == len(dp): dp.append(num) else: dp[pos] = num return len(dp) result_sum = 0 parent = [-1] * (N + 1) for query in Q: if query[0] == 1: _, U, V = query A[U], A[V] = A[V], A[U] elif query[0] == 2: _, U, V = query path = find_path(U, V, parent) values_on_path = [A[node] for node in path] lis_length = lis(values_on_path) result_sum = (result_sum + lis_length) % MOD return result_sum def main(): input = sys.stdin.read data = input().split() idx = 0 N = int(data[idx]) idx += 1 M = int(data[idx]) idx += 1 A = [0] * (N + 1) for i in range(1, N + 1): A[i] = int(data[idx]) idx += 1 E = [] for i in range(M): E.append((int(data[idx]), int(data[idx + 1]))) idx += 2 P = int(data[idx]) idx += 1 Q = [] for i in range(P): Q.append((int(data[idx]), int(data[idx + 1]), int(data[idx + 2]))) idx += 3 result = get_ans(N, M, A, E, P, Q) print(result) if name == "main": main() ❌ Tree lis ❌
07 يوليو 2024, 03:26

Coin game - Infosys ✅
Coin game - Infosys ✅
07 يوليو 2024, 03:25

Lighting Lamps - Infosys ✅
Lighting Lamps - Infosys ✅
07 يوليو 2024, 02:59

Minimum Cost Palindrome - Infosys ✅
Minimum Cost Palindrome - Infosys ✅
07 يوليو 2024, 02:58

Divide Array - Infosys ✅
Divide Array - Infosys ✅
07 يوليو 2024, 02:55

Best Alternating - Infosys ✅
Best Alternating - Infosys ✅
07 يوليو 2024, 02:53

Periodic string - Infosys ✅
Periodic string - Infosys ✅
07 يوليو 2024, 02:46

Xr - Infosys ✅
Xr - Infosys ✅
07 يوليو 2024, 02:33

def findTotal(S): distinct_strings = set() for i in range(len(S) - 1): new_string = S[:i] + S[i + 2:] distinct_strings.add(new_string) return len(distinct_strings) def main(): import sys S = sys.stdin.readline().strip() result = findTotal(S) print(result) ❌Distinct strings ❌
07 يوليو 2024, 02:33

Music melodies - Infosys ✅
Music melodies - Infosys ✅
07 يوليو 2024, 02:23

نستخدم ملفات تعريف الارتباط لتحسين تجربة التصفح لديك.
بالنقر على «قبول الكل»، فإنك توافق على سياسة استخدام ملفات تعريف الارتباط.