ConsultAdd Inc interview experience Real time questions & tips from candidates to crack your interview

Software Engineer

ConsultAdd Inc
upvote
share-icon
1 rounds | 1 Coding problems

Interview preparation journey

expand-icon
Journey
I applied through the Coding Ninjas Virtual Hiring Drive in March. To prepare, I strengthened my DSA skills using the Coding Ninjas DSA course and studied core subjects like DBMS and Operating Systems through Love Babbar’s notes.
Preparation
Topics: DSA, OS, DBMS
Application process
Where: Coding Ninjas Placement Cell
Eligibility: B.Tech CS/IT (Grad Year-2025 & 2024)

Interview rounds

01
Round
Medium
Online Coding Interview
Duration
Interview date7 Mar 2025
Coding problem1

1. Longest Wiggle Subsequence

Given an integer array nums, return the length of the longest wiggle subsequence. A wiggle sequence is defined as a sequence where the differences between consecutive numbers strictly alternate between positive and negative. Implement an efficient algorithm to determine this length.

Problem approach

int wiggleMaxLength(vector<int>& nums) {
   int n = nums.size();
   if (n == 0) return 0;

   int up = 1, down = 1;

   for (int i = 1; i < n; i++) {
       if (nums[i] > nums[i - 1]) {
           up = down + 1;
       } else if (nums[i] < nums[i - 1]) {
           down = up + 1;
       }
   }

   return max(up, down);
}
 

Here's your problem of the day

Solving this problem will increase your chance to get selected in this company

Skill covered: Programming

What is recursion?

Choose another skill to practice
Similar interview experiences
Software Engineer
1 rounds | 2 problems
Interviewed by ConsultAdd Inc
53 views
0 comments
0 upvotes
Software Engineer
1 rounds | 1 problems
Interviewed by ConsultAdd Inc
53 views
0 comments
0 upvotes
Software Engineer
1 rounds | 2 problems
Interviewed by ConsultAdd Inc
49 views
0 comments
0 upvotes
Software Engineer
1 rounds | 2 problems
Interviewed by ConsultAdd Inc
52 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
Software Engineer
4 rounds | 1 problems
Interviewed by Newgen Software
3210 views
2 comments
0 upvotes
company logo
Software Engineer
3 rounds | 6 problems
Interviewed by HashedIn
2582 views
0 comments
0 upvotes
company logo
Software Engineer
2 rounds | 2 problems
Interviewed by Ernst & Young (EY)
0 views
0 comments
0 upvotes