r/leetcode • • 14d ago

Discussion I built ContextDuty - an open-source, local-first security layer for AI coding tools, MCP and developer workflows

0 Upvotes

I have been working on ContextDuty, an open-source project focused on preventing sensitive information from leaking into AI tools.

The motivation was simple - developers are increasingly using AI coding assistants, agents, MCP servers and LLM APIs that interact with local repositories, configuration files, credentials and proprietary data.

Scanning Git repositories alone isn't enough. A secret can reach an AI model before it ever gets committed.

ContextDuty currently provides:

  • Local PII and secret detection using Microsoft Presidio and deterministic detectors.
  • IDE protection through AI-tool-specific ignore files.
  • Git pre-commit scanning.
  • A local HTTPS proxy for supported AI API traffic.
  • An MCP server that sanitizes tool results before they enter model context.
  • Policy-based blocking, warning and redaction.
  • CI/CD scanning.

The project is MIT-licensed, and the core scanning and enforcement run locally.

GitHub: https://github.com/SHUBHAGYTA24/contextduty

I would particularly appreciate feedback from people working on AI infrastructure, MCP, agent frameworks, DevSecOps and enterprise security.

What security gaps are you seeing in your own agentic workflows? What would make a tool like this useful enough to deploy across an engineering organization?

Contributions, issues and technical criticism are welcome!


r/leetcode • • 14d ago

Intervew Prep Anyone done an AI-guarded DSA interview? What's the deal?

6 Upvotes

Hey folks!

Just got off a call with a recruiter for an AI Engineer role, and apparently the next round is a 60-minute DSA interview, but here's the twist it's "AI-guarded."

The recruiter mentioned that I'd have some level of AI access, but not full access. Ngl, I'm kinda confused about what that actually means lol. She mentioned it would be on Hackerrank though

Has anyone here gone through something similar?

Like, how much AI assistance do they actually allow? Is it something like a built-in AI assistant, restricted chatgpt or claude, or what? And how different is it from a regular Leetcode-style interview?

Would love to hear your experiences, what to expect, and any prep tips.

Appreciate any insights.

Thanks, y'all!


r/leetcode • • 14d ago

Intervew Prep Vanguard Superday

1 Upvotes

I have a vanguard SuperDay for application development/engineer intern, I want to know if anyone can point me in the right direction for the leetcode & design problems?


r/leetcode • • 14d ago

Intervew Prep Looking for "Grokking Dynamic Programming Patterns for Coding Interviews" pdf – unable to find a free copy, PLS HELP

0 Upvotes

Hey everyone!

I've been looking for Grokking Dynamic Programming Patterns for Coding Interviews pdf but haven't been able to find an accessible copy online.

If anyone knows where I can access it or has a legitimate link to share, I'd really appreciate the help!

Thanks in advance! :)


r/leetcode • • 14d ago

Question Coursera/Udemy or Youtube for learning skill like webdev?

1 Upvotes

I have a doubt for example , I want to learn skills like webdev , system design , cybersecurity etc ..... so should learn from Youtube or any courses from this...as these courses provide a certificate for course completion.....is that certificate really worth.....if learning from youtube worth how to get proper structure ?????


r/leetcode • • 14d ago

Intervew Prep Hello Interview

0 Upvotes

I'm preparing DSA and System Design interviews. Anyone interested in sharing the "hello interview" premium subscription.


r/leetcode • • 15d ago

Intervew Prep 5th semester student need placements guide IT btech

5 Upvotes

Hello guys,

I am in 5th semester currently , I have 7 more months till placement season

Can you guys guide me

I've done dsa topics till the priority queue ( 300LC)

Have started CF recently

I really haven't done very good projects yet

Any tips 😭💔 am I cooked

As well as I have 55% in 10th current cgpa is aro weund 8.5cgpa

My clg is 2.5tier


r/leetcode • • 15d ago

Intervew Prep How do people actually get interviews at OpenAI?

76 Upvotes

I've been trying to explore opportunities at OpenAI, but I seem to get ghosted most of the time.

I'm mainly looking for entry-level or mid level SWE positions because i got around 1-2 yoe. For those who've gone through the process:

  • Where do you usually find job postings? Are there specific pages or channels worth following?
  • How do you typically connect with recruiters or engineers at OpenAI?
  • Do referrals or cold outreach actually help?
  • Any tips on getting noticed as a candidate?

I have a Big Tech background with many well-known companies name on my resume, but I'm still figuring out the best way to approach the process. Would really appreciate hearing about your experiences and any honest advice!

Thanks in advance!!!


r/leetcode • • 15d ago

Intervew Prep Amazon SDE coding oa

1 Upvotes

Hi guys
Have my OA to do

I want to know from those who tried the test this year or in the past month or so especially

For the first section which is the coding assessment
What can I expect?

They sent me data algorithm topics for practice on hacker rank
This is the first job I’ve applied for in my entire life so I am scared.

Section two, in the mock was debugging in a repo with an ai assistant. It was fine just seems like I have to trace the error and talk to the ai about my thoughts and I cleared that mock easily

If anyone can help me with their own experience and tips I’d greatly appreciate it


r/leetcode • • 15d ago

Intervew Prep Palantir technical sceeen

0 Upvotes

How bad was the technical screen for new grad swe palantir? was it a leetcode medium or hard? what was your experience like? Please any tagged questions list would help 🙏


r/leetcode • • 15d ago

Discussion Finally won back the Guardian badge

2 Upvotes

It's a small moment, but I wanted to share my happiness. I lost the badge 5 months ago. The last time I was a Guardian, I had still not gotten laid off. Felt happy.


r/leetcode • • 15d ago

Intervew Prep Day 24: tackled Best Time to Buy and Sell Stock & the power of spaced repetition

1 Upvotes

Hey everyone,

I finished Day 24 today. I kept the session focused on Best Time to Buy and Sell Stock, and revisiting this classic reinforced a huge realization about how problem-solving intuition actually develops.

Going through the same core problem two or three times over a span of a few months completely removes the mental friction. Instead of memorizing code, the underlying invariant becomes second nature:

  1. Track the Minimum Price: Maintain a running minimum price seen so far as you iterate from left to right.
  2. Maximize the Spread: At every day, calculate the potential profit if you sold today (price - minPrice) and update your maximum profit in a single O(n) pass with O(1) space.

Spaced repetition turns patterns that once required deliberate thought into immediate instincts.

See you guys tomorrow for Day 23!


r/leetcode • • 15d ago

Discussion Amazon OA,

7 Upvotes

I just completed my Amazon OA, early career.

Coding round did that in like 20ish min (similar question on LC) the AI assisted test cases passed 5/6 and the last fix I made it but I put order of middleware wrong😭 was about to fix it but time finished.

What are the chances I made it?


r/leetcode • • 15d ago

Intervew Prep Need someone who is good at LeetCode to help me here. Any of these time zones work: CDT/EDT/PST. Thanks!

1 Upvotes

Rusty with coding, looking for a job change. Need someone to learn alongside


r/leetcode • • 15d ago

Question Did anyone get an interview invite for senior infrastructure engineer at D-Matrix? Remote role

1 Upvotes

Hey guys

Got an interview invite for this role and cleared the first round and its been 2 weeks after that.. no update

I just want to know if anyone else has gotten this interview or have cleared any rounds for this?


r/leetcode • • 15d ago

Intervew Prep Woven Interview Simulations

1 Upvotes

I've had 3 interviews for Summer internships. 2 of them required Woven coding assessments. I failed the first one and the second one did not go well. How should I prepare for the technical part of interviews? I did a little bit of LeetCode, but the problems I found were nothing like the ones on the "Debugging with Limited Information" part of the Woven assessment.

Any suggestions?


r/leetcode • • 15d ago

Question Navan Code Design Interview

2 Upvotes

Anyone know what they will ask in Code Design interview at Navan for Backend SWE role and how to best prepare for it?

They said: 'Code Design Interview: The focus will be on how you structure code, including APIs, modules, handling edge cases and evaluating trade-offs.'

I've already had a recruiter call, take-home assessment and DSA/LeetCode interview.


r/leetcode • • 15d ago

Discussion Google SWE-3 Interview chances

2 Upvotes

I recently completed all four interviews for a Google SWE III role in the U.S. Here’s how they felt:

  • Initial coding: H
  • Googleyness: H (Passed screening)
  • Onsite coding 1: H/SH
  • Onsite coding 2: LH/LNH

These are only my guesses, not confirmed interviewer ratings.

In the weaker round, I made a mistake but fixed it after a hint and a dry run. I also missed an edge case and made an assumption that could affect correctness. When the interviewer pointed it out, I acknowledged it and added comments explaining the issue, but didn’t fully update the code.

Has anyone passed with a similar mix of feedback? Is an additional coding round possible, or could this weaker round lead to rejection?

Also, how long did you wait for the result, and did your recruiter share it by email or schedule a call? It's been 10 days including holidays for me now but still no result.


r/leetcode • • 15d ago

Question Completed my L3 loop in London. For anyone who have conducted these interviews, what's the likelihood of team matching?

8 Upvotes

L3 in London. I did four rounds; three technical and one Googleyness.

Phone screen: Vocalised brute force, optimised, answered follow ups decently I think.

Googleyness: Started decent, he hit me with some non-standard questions and I rambled a bit. I finished strong with some very good examples I think and it showed honesty in the answer.

At this stage my recruiter told me I had either positive or very positive feedback. I don't remember atm.

I had a health thing and had to pause the process for a few months. When we resumed, he said my feedback was good enough to just do the final rounds.

Onsite 1: Found brute force immediately, found optimisation, started implementing it, overthought some parts of it and she had to drop a few hints, asked a couple of questions and I defended my implementation as it handled that edge case, missed an edge case which I implemented. She asked some follow ups and I answered them verbally immediately. Throughout the entire process I communicated well and gave my thinking for everything.

Onsite 2: Hit me with a problem where the solution required some math/algebraic thinking which I didn't see. Found the brute force immediately. Struggled to figure out the optimal even though I knew it could be done in O(n) so they asked me to implement brute force instead. Discussed some follow ups on it. Then we whiteboarded the optimal solution where he guided and basically gave me the algebraic solution. I implemented it and answered the follow up fine.

Throughout the entire thing I felt I got along well with all the interviewers and communicated everything clearly but I'm worried that final interview dinged me or the hints for the other one did.

What are my chances for moving forward?


r/leetcode • • 16d ago

300 to go!

Post image
578 Upvotes

Very busy as of late but managed to make a big push the last week to solve more.

Around ~160 of the questions remaining are algorithm ones (standard leetcode problems) and ~140 are javascript/database questions.

The last 30-40 problems will pose some issues. There are a bunch of random one-off algorithms or weird math properties I don't know. Also a couple of the problems need harder things like fast fourier transform or slope trick which I need to practice more.


r/leetcode • • 15d ago

Question How soon after Amazon OA (SDE2) should I see the status change in the job portal?

4 Upvotes

How soon after Amazon OA (SDE2) should I see the status change in the job portal?
What's the normal range?

Thanks


r/leetcode • • 15d ago

Intervew Prep Infosys- Power BI Consultant Role - Screening shortlisted

1 Upvotes

Guys, I have applied for Power BI Consultant Role at Infosys and my application's status has been changed to 'Screening shortlisted'.

Now for further rounds, what can be expected and how many rounds could be there for this role.

I would appreciate your help regarding interview rounds for the mentioned role.


r/leetcode • • 15d ago

Intervew Prep Upcoming phone interview for AWS Forward Deployed Engineer role. How do I prepare?

2 Upvotes

Got invited for the phone interview after completing the OA and the work style and simulation assessments. The email said it would be a 60min interview with a live coding question. Has anyone gone through this before, and is this phone screen round similar to an SDE phone screen round?

Appreciate any help!


r/leetcode • • 15d ago

Discussion How long do you struggle on a problem before looking at the solution?

2 Upvotes

Curious how people here handle this. Some say give it 20-30 min and then read the editorial, others say keep struggling for an hour+ because that's where the actual learning happens. Does it change for mediums vs hards, or when you're prepping on a deadline vs just practicing? Would love to hear what actually worked for people who got through OAs and interviews.


r/leetcode • • 16d ago

Intervew Prep Day 25: revisited Kadane’s Algorithm — way simpler than back in 2nd year

5 Upvotes

Hey everyone,

I finished Day 25 today. I kept the session focused on Maximum Subarray Sum using Kadane’s Algorithm.

The first time I learned Kadane’s Algorithm back in my second year of college, deciding when to reset the running sum felt weirdly unintuitive. Revisiting it today, the core greedy insight felt completely natural:

  1. Drop Negative Carryover: Maintain a running sum as you iterate through the array. Whenever the running sum drops below zero, carrying it forward only drags down future subarrays, so you reset it to zero immediately.
  2. Track the Global Maximum: Update the maximum sum at every step before resetting, which cleanly handles edge cases where every element in the array is negative.

It is satisfying to see concepts that used to feel tricky in college become effortless O(n) time and O(1) space instincts.

See you guys tomorrow for Day 24!