How to Crack the Infosys SP,DSE Online Assessment 2025

Infosys SP & DSE – Previous Year Coding Questions with Solutions + How to Crack the Online Assessment

If you’re preparing for Infosys Specialist Programmer (SP) or Digital Specialist Engineer (DSE) roles, the coding round is the most crucial step. These roles demand stronger programming knowledge and problem-solving skills compared to the generic Infosys NQT. This guide breaks down real previous year Infosys SP & DSE coding questions with beginner-friendly explanations, code solutions, and tips on how to crack the online assessment.

The Infosys SP/DSE online test includes advanced-level programming questions, usually from data structures, algorithms, and problem-solving domains. Here’s how to approach it smartly:

1. Understand the Test Structure

  • Total Questions: 3 coding problems
  • Time Limit: 3 hours
  • Difficulty: Medium to Hard (DSA level)
  • Languages Allowed: C, C++, Java, Python
  • Questions are usually based on:
    • Arrays and Strings
    • Hashing and Sorting
    • Recursion, Backtracking
    • Stack, Queue, Linked List
    • Tree/Graph Basics
  • String manipulation (palindrome, anagram, substrings)
  • Two-pointer and sliding window techniques
  • Sorting and searching algorithms (binary search)
  • Recursion and dynamic programming (for SP roles)
  • Hash maps and sets (counting, lookups)
  • Prefix sum, subarray problems

Pattern questions are regularly asked to check logical flow. Practice printing patterns using loops and conditionals.

  • Start with a brute-force solution to show clarity
  • Optimize using better logic if time permits
  • Add comments where needed
  • Use meaningful variable names

Test your solution with:

  • Edge cases (empty strings, single element arrays)
  • Maximum input size
  • Incorrect or malformed input
  • Use platforms like LeetCode, GeeksforGeeks, CodeStudio, HackerRank
  • Set a timer for 1-hour coding practice daily
  • Solve 2 Medium + 1 Hard problem every day

Refer to previous questions asked in:

  • HackWithInfy
  • Infosys Certification Challenge
  • Off-campus SP/DSE drives
  • Print Diamond Pattern
  • Max Difference in Array (Larger After Smaller)
  • Check Anagram
  • Leaders in Array
  • First Non-Repeating Character
  • Longest Unique Substring (Sliding Window)
  • Merge Intervals (Sorting)
  • Detect Cycle in Linked List (Floyd’s Algorithm)

These are representative of what you may face in the exam. Check the solutions above for step-by-step code.

  • Consistency is the key – practice daily
  • Choose one preferred language and master it
  • Focus more on logic than syntax
  • Attempt mock assessments before the actual test

About KN Academy

Welcome to KN Academy Jobs, the premier online job portal for off campus job opportunities. Our mission is to connect talented job seekers with top employers and help them find the perfect fit for their career goals.

We Provide Recent OFF Campus Hiring Drives For 2020/2021/2022/2023 Batch Students. The Domain in Which We Cover Hirings Are Software Engineering , Data Analysis , Web Development

Our Channel Post Jobs For Freshers / Experienced People With Full Job Description Including Hiring Batch , Experience Required
Qualification.

One of the main advantages of fresher jobs is that they provide a platform for individuals to gain valuable work experience, develop new skills, and build a professional network. Many organizations offer on-the-job training and mentoring programs, which can help freshers to quickly adapt to the work environment and advance in their careers.

However, finding a fresher job can be challenging, as there is a lot of competition for entry-level positions. It’s important for freshers to be proactive and take a strategic approach to their job search.