avathon logo
Avathon· SDE II

Avathon Interview Experience SDE2

Location
Bangalore
Experience
3 years
Posted
24 Aug 2026
65 reads

Summary

The interview was positive and highly educational; I felt confident about my performance.

How it went

Status: 3 YOE Position: SDE2 Location: Bangalore Company: Avathon

Round 1:

This round was mainly focused on funsamental knowledge testing around DSA and react, javascript. There were two interviewers.

Questions:

  • DSA: You are given an integer array weight of length n, representing the weights of n parcels arranged in a straight line. A shipment is defined as a contiguous subarray of parcels. A shipment is considered balanced if the weight of the last parcel is strictly less than the maximum weight among all parcels in that shipment. Select a set of non-overlapping, contiguous, balanced shipments such that each parcel appears in at most one shipment (parcels may remain unshipped). Return the maximum possible number of balanced shipments that can be formed.

  • What is the execution order: console.log('A');
  setTimeout(()=>
    console.log('B'),0);
    Promise.resolve().then(()=>
    console.log('C'));
    queueMicrotask(()=>
    console.log('D'));
    console.log('E');

Follow up questions: What is micro and macro task, Explain event loop...

  • What is wrong with this code?
 function Time(){
    const[count,setCount]=useState(0);
    useEffect(()=
    {
      setCount(count+1);
    },1000);
    },[]);
    return <h1>{count}</h1>;
    }

Round 2:

  • What is Abstract user in django, query operations, Find maximum of an array python -> Change it to find duplicates, In javascript we have async and await how do they help, Give example in python for async await, What are event driven attributes, difference between kafka and kinesis, authentication vs authorisation, discussion around personal project--> how you enhance it, deployment methods(blue/ green deployment, canary deployment), what is newly introduced HTTP method, questions around aws services(EC2, IAM roles, s3) etc..

The overall interview process was positive and highly educational. The interview panel provided good support throughout. The evaluation heavily emphasized fundamental software engineering concepts.

Questions asked (3)

  1. 01

    Maximum Number of Balanced Shipments

    Data Structures & Algorithms

    You are given an integer array weight of length n, representing the weights of n parcels arranged in a straight line. A shipment is defined as a contiguous subarray of parcels. A shipment is considered balanced if the weight of the last parcel is strictly less than the maximum weight among all parcels in that shipment.

    Select a set of non‑overlapping, contiguous, balanced shipments such that each parcel appears in at most one shipment (parcels may remain unshipped).

    Return the maximum possible number of balanced shipments that can be formed.

  2. 02

    JavaScript Execution Order with setTimeout, Promise, and queueMicrotask

    Data Structures & Algorithms

    What is the execution order of the following code?

    console.log('A');
    setTimeout(() => console.log('B'), 0);
    Promise.resolve().then(() => console.log('C'));
    queueMicrotask(() => console.log('D'));
    console.log('E');
    

    Follow‑up: Explain the difference between micro‑tasks and macro‑tasks and describe how the event loop processes them.

  3. 03

    Identify Bug in React useEffect Hook

    Data Structures & Algorithms

    What is wrong with the following React component code?

    function Time(){
      const [count, setCount] = useState(0);
      useEffect(() => {
        setCount(count + 1);
      }, 1000);
      }, []);
      return <h1>{count}</h1>;
    }
    

Know someone preparing? Send it to them:WhatsAppLinkedInX

Interviewed at Avathon recently?

Write up your rounds while you still remember the questions. It helps the next person more than you would think.

Share your experience
Discussion 0

Questions for the author, or how your own interview compared.

Join the discussion

Sign in with Google to comment or ask the author a question.

No comments yet

Be the first to share your thoughts and start the discussion!