i
Publicis
Sapient
Work with us
Filter interviews by
Count unique alphabets in a string by identifying distinct letters, ignoring case and non-alphabetic characters.
Convert the string to lowercase to ensure case insensitivity. Example: 'Hello' becomes 'hello'.
Use a set to store unique characters since sets automatically handle duplicates. Example: from 'hello', the set will be {'h', 'e', 'l', 'o'}.
Iterate through the string and add only alphabetic characters to the ...
An interface is a point where two systems, subjects, organizations, etc., meet and interact with each other.
An interface defines the methods that a class must implement, without specifying how they should be implemented.
Interfaces allow for multiple inheritance in programming languages like Java.
Examples of interfaces in programming include Java interfaces, USB ports on electronic devices, and user interfaces on s...
The pillars of OOPS (Object-Oriented Programming) are Inheritance, Encapsulation, Polymorphism, and Abstraction.
Inheritance allows a class to inherit properties and behavior from another class. For example, a 'Car' class can inherit from a 'Vehicle' class.
Encapsulation refers to the bundling of data with the methods that operate on that data. It restricts access to some of an object's components. For example, usin...
Error-handling mechanisms are essential for robust software. They help prevent crashes and improve user experience.
Identify potential errors and exceptions
Implement try-catch blocks
Use logging to track errors
Provide informative error messages to users
Test error-handling thoroughly
Consider using third-party libraries for error-handling
Document error-handling procedures
Optimizing a solution involves identifying and implementing improvements to increase efficiency and effectiveness.
Analyze the current solution to identify areas for improvement
Consider alternative approaches and technologies
Implement changes and measure the impact on performance
Continuously iterate and refine the solution
Example: optimizing a manufacturing process to reduce waste and increase output
Maximize profit by buying and selling a stock once based on price fluctuations.
Identify the lowest price to buy the stock before selling.
Track the highest price after the lowest price to maximize profit.
Example: Prices = [7, 1, 5, 3, 6, 4]; Buy at 1, sell at 6 for a profit of 5.
Use a single pass algorithm to find the minimum price and maximum profit efficiently.
Oops concepts and use of interface over abstract class
Oops concepts are fundamental to object-oriented programming
Encapsulation, Inheritance, Polymorphism, and Abstraction are the four pillars of OOP
Interface is a contract that specifies the behavior of a class
Abstract class is a class that cannot be instantiated and can have both abstract and non-abstract methods
Interface is preferred over abstract class when mul...
Insertion sort is a simple sorting algorithm that builds the final sorted array one item at a time.
Iterate through the array starting from the second element
Compare each element with the elements before it and insert it in the correct position
Repeat until the entire array is sorted
Example: ['3', '1', '4', '1', '5', '9', '2', '6'] -> ['1', '1', '2', '3', '4', '5', '6', '9']
It is an assessment on OOPS,DSA,DBMS and coding questions
An interface is a point where two systems, subjects, organizations, etc., meet and interact with each other.
An interface defines the methods that a class must implement, without specifying how they should be implemented.
Interfaces allow for multiple inheritance in programming languages like Java.
Examples of interfaces in programming include Java interfaces, USB ports on electronic devices, and user interfaces on softwa...
The pillars of OOPS (Object-Oriented Programming) are Inheritance, Encapsulation, Polymorphism, and Abstraction.
Inheritance allows a class to inherit properties and behavior from another class. For example, a 'Car' class can inherit from a 'Vehicle' class.
Encapsulation refers to the bundling of data with the methods that operate on that data. It restricts access to some of an object's components. For example, using pri...
I applied via Campus Placement
Food fill problem from leetcode
Insertion sort is a simple sorting algorithm that builds the final sorted array one item at a time.
Iterate through the array starting from the second element
Compare each element with the elements before it and insert it in the correct position
Repeat until the entire array is sorted
Example: ['3', '1', '4', '1', '5', '9', '2', '6'] -> ['1', '1', '2', '3', '4', '5', '6', '9']
I applied via Campus Placement and was interviewed in Apr 2023. There were 3 interview rounds.
3 hours, had aptitude questions, then one dsa question and one question on fetching API data.
Maximize profit by buying and selling a stock once based on price fluctuations.
Identify the lowest price to buy the stock before selling.
Track the highest price after the lowest price to maximize profit.
Example: Prices = [7, 1, 5, 3, 6, 4]; Buy at 1, sell at 6 for a profit of 5.
Use a single pass algorithm to find the minimum price and maximum profit efficiently.
Optimizing a solution involves identifying and implementing improvements to increase efficiency and effectiveness.
Analyze the current solution to identify areas for improvement
Consider alternative approaches and technologies
Implement changes and measure the impact on performance
Continuously iterate and refine the solution
Example: optimizing a manufacturing process to reduce waste and increase output
Error-handling mechanisms are essential for robust software. They help prevent crashes and improve user experience.
Identify potential errors and exceptions
Implement try-catch blocks
Use logging to track errors
Provide informative error messages to users
Test error-handling thoroughly
Consider using third-party libraries for error-handling
Document error-handling procedures
I work well in teams by actively listening, collaborating, and continuously learning.
I actively listen to my team members to understand their perspectives and ideas.
I collaborate effectively by sharing my own ideas and being open to feedback.
I continuously learn by seeking out new knowledge and skills to contribute to the team's success.
I appeared for an interview before Apr 2024, where I was asked the following questions.
Count the number of alphabetic characters in a given string, ignoring numbers, spaces, and punctuation.
Use a loop to iterate through each character in the string.
Check if the character is an alphabet using isalpha() method.
Increment a counter for each alphabetic character found.
Example: For the string 'Hello123!', the count is 5.
Count unique alphabets in a string by identifying distinct letters, ignoring case and non-alphabetic characters.
Convert the string to lowercase to ensure case insensitivity. Example: 'Hello' becomes 'hello'.
Use a set to store unique characters since sets automatically handle duplicates. Example: from 'hello', the set will be {'h', 'e', 'l', 'o'}.
Iterate through the string and add only alphabetic characters to the set. ...
I applied via Campus Placement and was interviewed in Jul 2021. There was 1 interview round.
Oops concepts and use of interface over abstract class
Oops concepts are fundamental to object-oriented programming
Encapsulation, Inheritance, Polymorphism, and Abstraction are the four pillars of OOP
Interface is a contract that specifies the behavior of a class
Abstract class is a class that cannot be instantiated and can have both abstract and non-abstract methods
Interface is preferred over abstract class when multiple...
What people are saying about Publicis Sapient
I applied via Walk-in and was interviewed before Aug 2021. There were 3 interview rounds.
posted on 11 Apr 2021
I'm a passionate software engineer with a strong background in full-stack development and a love for solving complex problems.
Experience in developing web applications using React and Node.js.
Worked on a team project that improved application performance by 30%.
Strong understanding of algorithms and data structures, demonstrated in coding competitions.
Enjoy collaborating with cross-functional teams to deliver high-qual...
posted on 5 May 2021
posted on 18 Mar 2022
I applied via Referral and was interviewed in Sep 2021. There were 4 interview rounds.
I'm a passionate software engineer with a strong background in full-stack development and a love for solving complex problems.
Experience in developing web applications using React and Node.js.
Worked on a team project that improved application performance by 30%.
Strong understanding of algorithms and data structures, demonstrated in competitive programming.
Enjoy collaborating with cross-functional teams to deliver high-...
Basic question about oops
String
Array
About project
based on 4 interview experiences
Difficulty level
Duration
based on 4 reviews
Rating in categories
Senior Associate
2.2k
salaries
| ₹16.7 L/yr - ₹32 L/yr |
Associate Technology L2
1.6k
salaries
| ₹9.2 L/yr - ₹18 L/yr |
Senior Associate Technology L1
1.4k
salaries
| ₹16.4 L/yr - ₹30 L/yr |
Senior Software Engineer
915
salaries
| ₹18 L/yr - ₹32 L/yr |
Senior Associate 2
666
salaries
| ₹23.8 L/yr - ₹42 L/yr |
Genpact
DXC Technology
Sutherland Global Services
Optum Global Solutions