Sigmoid Analytics Online Assessment 2025 - Complete Coding Questions(8)
Hey everyone! I recently gave the Sigmoid Analytics Online Assessment and wanted to share the complete set of questions to help others preparing for it.
The test had 39 total questions — 8 coding, 13 CS fundamentals, and 18 aptitude/logical reasoning.
🧩 CODING SECTION (8 Questions)
1️⃣ Minimum Cost of Reaching Destination
There are N cities numbered 1 to N. You start at city 1 and want to reach city N.
From each city i, you can go to (i+1) or (i+3) (if they exist).
You’re given an array A of ticket prices; cost between city i and j = |A[i] − A[j]|.
Find the minimum total cost to reach city N using DP.
👉 Concepts: Dynamic Programming, min cost path with limited jumps.
2️⃣ The Last Chocolate
Bruce has N chocolates arranged in a row and a coin.
Heads → remove first chocolate, Tails → remove last.
Repeat until only 1 chocolate remains.
Find number of possible coin-toss sequences that leave the K-th chocolate last.
👉 Formula: C(n−1, k−1).
3️⃣ 5-Day Challenge
Alice has N books with given pages. She must finish them in exactly 5 days, distributing pages as evenly as possible.
Find minimum pages she must read per day to finish all books in 5 days.
👉 Logic: floor(total_pages / 5).
4️⃣ Island Life
You must survive D days on an island eating E sweets per day.
Each box has N sweets; you can buy at most 1 box/day and cannot buy on Sundays.
Find the minimum number of days you must buy boxes to survive, else return −1.
👉 Concepts: Greedy + math (weekly restriction).
5️⃣ Chocolate Jar
Three students A, B, C take turns picking chocolates from jars one by one until each jar is empty, then move to next jar.
Find total chocolates with A at the end.
👉 Formula: A gets ceil(chocolates/3) from each jar.
6️⃣ Quest for the Hidden Code
Given two lowercase strings S1 and S2, find their longest common substring.
Return the sum of ASCII values of characters in that substring.
If multiple substrings have same max length, return the first one’s sum.
👉 Concepts: DP (Longest Common Substring).
7️⃣ String Swap
Given string S and M operations stored in array A (values 1 or 2):
1 → swap first and last character
2 → swap first N/2 and last N/2 characters (N is even)
Perform operations sequentially and return the final string.
👉 Concepts: String manipulation, simulation.
8️⃣ Consonant–Vowel Merge
Given string S (equal vowels and consonants), rearrange so that:
Consonants occupy even indices (0,2,4,…)
Vowels occupy odd indices (1,3,5,…)
Keep their original relative order.
👉 Concepts: Stable partitioning, string construction.


