fa
Feedback

فریب کلاهبرداران را نخورید! تل‌متریو این کانال‌ها را شناسایی و برچسب‌گذاری می‌کند 👉 برای مشاهده برچسب، اشتراک تهیه کنید

FastTrack Placement Hub

FastTrack Placement Hub

رفتن به کانال در Telegram

🚀 Placement Preparation Hub 🎓 From Preparation to Placement ⚡️ OA Support • Coding • Aptitude • Technical • HR 🌟 Trusted by Hundreds of Students 📩 DM: @Mrtrueliving_ix 💙 Turning Aspirations into Offer Letters.

نمایش بیشتر
3 384
مشترکین
اطلاعاتی وجود ندارد24 ساعت
-117 روز
-3930 روز
آرشیو پست ها
import sys
sys.setrecursionlimit(1_000_000)

def solve_one(N, parent):
    g = [[] for _ in range(N + 1)]
    for i in range(2, N + 1):
        p = parent[i]
        g[p].append(i)
        g[i].append(p)

    dp_in = [0] * (N + 1)
    dp_out = [0] * (N + 1)

    def dfs(u, p):
        gains = []
        for v in g[u]:
            if v == p:
                continue
            dfs(v, u)
            if dp_in[v] > 0:
                gains.append(dp_in[v])

        total_gains = sum(gains) if gains else 0
        best_child = max(gains) if gains else 0

        dp_in[u] = max(u, total_gains)

        border_val = max(u, u + best_child)
        internal_val = total_gains
        dp_out[u] = max(border_val, internal_val)

    dfs(1, 0)
    return max(dp_out[1:])

def solve():
    data = iter(sys.stdin.read().strip().split())
    t = int(next(data))
    out_lines = []
    for _ in range(t):
        N = int(next(data))
        parent = [0] * (N + 1)
        for i in range(1, N + 1):
            parent[i] = int(next(data))
        ans = solve_one(N, parent)
        out_lines.append(str(ans))

    sys.stdout.write("\n".join(out_lines))   

if __name__ == "__main__":
    solve()
Code secure ✓
12 دسامبر 2025, 04:03
12 دسامبر 2025, ~08:06

IBM - CIC - OFFLINE DRIVE ✓ || INTERVIEW DM FOR ANY PLACEMENT HELP @Mrtrueliving_ix @Mrtrueliving_ix #IBM CIC #offline #inter
+1
IBM - CIC - OFFLINE DRIVE ✓ || INTERVIEW
DM FOR ANY PLACEMENT HELP @Mrtrueliving_ix @Mrtrueliving_ix #IBM CIC #offline #interview
12 دسامبر 2025, 03:08

R1 Accenture demo pattern ❤️
+3
R1 Accenture demo pattern ❤️
12 دسامبر 2025, 00:07

photo content
12 دسامبر 2025, 00:04
12 دسامبر 2025, ~00:08

Infosys ONCAMPUS Slots are available @Mrtrueliving_ix @Mrtrueliving_ix
💯 Test Clearance Guarantee
11 دسامبر 2025, 22:57

All placement exams & Interview Help available
@Mrtrueliving_ix @Mrtrueliving_ix Top notch success rate 👣 💯 Placement guarantee ❤️
11 دسامبر 2025, 20:55

Wipro sending pre skilling mail's ✓ @Mrtrueliving_ix @Mrtrueliving_ix
Wipro sending pre skilling mail's ✓
@Mrtrueliving_ix @Mrtrueliving_ix
11 دسامبر 2025, 10:21

💼 Accenture OFFCAMPUS — My Experience & Tips! 💼
✨ Round 1 (Behaviour + Gaming Test): 🧩 Behaviour Test: ➡️ Take your time — spend 10–15 seconds on each question. ➡️ Think carefully; consistency matters more than speed.
🎮 Gaming Test:
🔥 Plan Route: Try to solve 2 out of 3 (I completed all 3 ✅) 🔥 Low to High: Aim for 20+ scores 🔥 Collect Keys: At least 2 out of 3 (I did 3/3 😎) 💬 Pro Tip: If you crack Round 1, the rest of the rounds will feel much smoother and easier! Keep patience, stay focused, and you’ll make it too! 💪 @Mrtrueliving_ix @Mrtrueliving_ix Follow the top notch success mantra ❤️ Share with your friends too https://t.me/Code_alphix
11 دسامبر 2025, 09:57

✅CTS- INTERVIEW { PYTHON -GENC}
1. If your teammate is absent during the final project presentation, what will you do? 2. List the built-in data types in Python. 3. Tell me any other data types in Python. 4. How do you handle exceptions in Python? 5. What is the is operator in Python? 6. What is NumPy? 7. Is Python case-sensitive? 8. Can we convert a string into an integer in Python? 9. What are mutable data types in Python? 10. What are immutable data types in Python? 11. Is dict a data type in Python? 12. What is the Fibonacci series? 13. Write Python code to print Fibonacci series. 14. What does a, b = b, a + b mean in Python? 15. Why do we write 1 in the Fibonacci series initialization? 16. Have you done any internship?
11 دسامبر 2025, 05:11

Successfully Help done cts- ONCAMPUS ✓ => Interview || python_Track ❤️ Test accomplished ❤️ || ONCAMPUS ❤️ DM for any placeme
+1
Successfully Help done cts- ONCAMPUS ✓ => Interview || python_Track ❤️ Test accomplished ❤️ || ONCAMPUS ❤️ DM for any placement Help available @Mrtrueliving_ix @Mrtrueliving_ix #Cts #interview #ONCAMPUS
11 دسامبر 2025, 05:03

Cts Offcampus results are out ✓
Time : 2.02 pm ✓ Check your 💌 mails Interview date: offline -15 dec
11 دسامبر 2025, 03:53

Successfully Placed in Delloite
+1
Successfully Placed in Delloite
11 دسامبر 2025, 02:29

Successfully cleared Virtusa Hackthon ✓ Shortlist for Technical interview 🎉💻 Role : software Enginee Test accomplished ❤️ |
Successfully cleared Virtusa Hackthon ✓ Shortlist for Technical interview 🎉💻 Role : software Enginee Test accomplished ❤️ || with 💯 success Rate https://t.me/Code_alphix/8375?single DM for any placement Help available @Mrtrueliving_ix @Mrtrueliving_ix #Virtusa #Hackthon #Interview #SDE
11 دسامبر 2025, 01:51

Listen Lights ONCAMPUS Help done ✓S2 DM for all placement help available @Mrtrueliving_ix @Mrtrueliving_ix
Listen Lights ONCAMPUS Help done ✓S2
DM for all placement help available @Mrtrueliving_ix @Mrtrueliving_ix
10 دسامبر 2025, 11:46

*Looking for only AP / TS state candidates only* *Kyndryl* *Designation:* Infrastructure Specialist Work location: Hyderabad *Salary:* ₹5.2 LPA + joining bonus *Eligibility:* • BE / B.Tech / MCA – 2025 pass-outs only • Minimum 65% in all academics • Eligible branches: IT, Computer Science, ECE, or other relevant IT fields (No Civil/Mechanical) https://kyndryl.wd5.myworkdayjobs.com/en-US/KyndrylEarlyCareers/job/Infrastructure-Specialist_R-53609
10 دسامبر 2025, 07:20

🚀 Infosys Help Available – Get Top-Notch Success! 🚀
Unlock your career opportunities with expert support and guaranteed guidance! Your success is our priority. 💯🔥 🔗 Resources: https://t.me/Code_alphix/9199 https://t.me/Code_alphix/9209?single https://t.me/Code_alphix/9194?single https://t.me/Code_alphix/8086 https://t.me/Code_alphix/7455 https://t.me/Code_alphix/7408 https://t.me/Code_alphix/7650 💬 DM for 100% Placement Offers: 👉 @Mrtrueliving_ix 👉 @Mrtrueliving_ix 🎯 Interview Assistance Also Available (Online & Offline) Get guided… Get placed… Secure your future now!
10 دسامبر 2025, 05:12

We will start
10 دسامبر 2025, 02:08
10 دسامبر 2025, ~02:08

Give 10 mins
10 دسامبر 2025, 02:07
10 دسامبر 2025, ~02:08

ما از کوکی‌ها برای بهبود تجربه مرور شما استفاده می‌کنیم.
با کلیک روی «همگی را قبول می‌کنم»، با سیاست استفاده از کوکی‌ها موافقت می‌کنید.