Filter interviews by
Clear (1)
I applied via Referral and was interviewed in Mar 2021. There were 3 interview rounds.
Swap two numbers without using third variable
Use arithmetic operators to swap values
Addition and subtraction can be used to swap values
XOR operator can also be used to swap values
Reverse a string without using array
Use two pointers, one at the start and one at the end of the string
Swap the characters at the two pointers and move the pointers towards each other
Repeat until the pointers meet in the middle of the string
Find the largest palindrome substring in a given string.
Iterate through the string and check for palindromes of odd and even lengths.
Keep track of the largest palindrome found so far.
Use dynamic programming to optimize the solution.
Example: 'babad' -> 'bab' or 'aba'.
Sort numbers in string format using Python
Convert the array of strings to an array of integers using map()
Sort the array of integers using sorted()
Convert the sorted array of integers back to an array of strings using map()
Execution of non-existent file
An error message is displayed indicating the file does not exist
The program may crash or terminate abruptly
The operating system may throw an exception
The program may prompt the user to create the file
To give group and user permissions in Linux, use the chmod command.
Use the chmod command followed by the permission code (e.g. 755) and the file or directory name.
To give permissions to a specific user, use the chown command followed by the username and file or directory name.
To give permissions to a specific group, use the chgrp command followed by the group name and file or directory name.
Docker is a platform for developing, shipping, and running applications using containerization technology.
Docker allows developers to package their applications and dependencies into a container that can run on any system
Containers are lightweight and provide isolation, making it easy to deploy and scale applications
Docker Hub is a repository of pre-built images that can be used to quickly deploy applications
Docker Com...
Kubernetes is an open-source container orchestration platform that automates deployment, scaling, and management of containerized applications.
Kubernetes is used to manage containerized applications across multiple hosts.
It automates deployment, scaling, and management of containerized applications.
It provides a platform for deploying, scaling, and managing containerized applications.
Kubernetes is highly scalable and f...
Kubernetes was chosen due to its superior orchestration capabilities and larger community support.
Kubernetes has better load balancing and scaling features
Kubernetes has a larger community and more resources available
Docker Swarm is simpler and easier to use for smaller projects
Kubernetes is more suitable for complex, large-scale applications
Code is pushed to Github using Git commands through the terminal or a Git client.
Create a new repository on Github
Clone the repository to your local machine
Make changes to the code and commit them using Git commands
Push the changes to Github using Git commands
git clone copies a repository to local machine while git fork creates a copy on GitHub.
git clone downloads the entire repository to local machine
git fork creates a copy of the repository on GitHub
git clone is used to work on an existing repository
git fork is used to contribute to someone else's repository
git clone creates a local copy of the repository
git fork creates a remote copy of the repository
Maven is a build automation tool used primarily for Java projects.
Maven manages dependencies and builds the project using a pom.xml file
It simplifies the build process by providing a standard way of building and packaging projects
Maven can also generate reports and documentation for the project
Example: mvn clean install - compiles, tests, and packages the project
To change the owner of a file in Linux, use the chown command.
Use the chown command followed by the new owner's username and the file name.
To change the owner and group, use chown followed by the new owner's username, a colon, the new group's name, and the file name.
To change the owner of a directory and its contents, use the -R option with chown.
Example: chown newowner myfile.txt
Example: chown newowner:newgroup myfile
A cron job can be run using the crontab command in Unix/Linux systems.
Open the terminal and type 'crontab -e' to edit the cron table.
Add a new line with the desired schedule and command to run.
Save and exit the editor to activate the cron job.
Use 'crontab -l' to list all current cron jobs.
Use 'crontab -r' to remove all cron jobs.
Top trending discussions
I appeared for an interview before Aug 2016.
I appeared for an interview before Feb 2016.
I appeared for an interview in Apr 2017.
I am a software developer with a passion for coding and problem-solving. My family is supportive and has always encouraged my career in tech.
Experienced software developer
Passionate about coding and problem-solving
Supportive family that encourages my career in tech
posted on 27 Aug 2015
I appeared for an interview before Mar 2021.
Round duration - 60 minutes
Round difficulty - Easy
This was an easy round which went really smooth.
Calculate the Nth term in the Fibonacci sequence, where the sequence is defined as follows: F(n) = F(n-1) + F(n-2)
, with initial conditions F(1) = F(2) = 1
.
Calculate the Nth Fibonacci number efficiently using dynamic programming.
Use dynamic programming to store previously calculated Fibonacci numbers to avoid redundant calculations.
Start with base cases F(1) and F(2) as 1, then iteratively calculate F(n) using F(n-1) and F(n-2).
Ensure the input N is within the constraints 1 <= N <= 10000.
Example: For N = 5, the 5th Fibonacci number is 5 (1, 1, 2, 3, 5).
Given a positive integer N
, your task is to determine and return all prime numbers less than or equal to N
.
N = 10
2 3 5 7
N = 20
Implement a function to return all prime numbers less than or equal to a given positive integer N.
Create a function that takes a positive integer N as input
Iterate from 2 to N and check if each number is prime
Use a helper function to determine if a number is prime
Return an array of all prime numbers less than or equal to N
A merge join in SQL is a method of combining two sorted datasets by matching corresponding rows based on a specified condition.
Merge join is used when joining two large datasets that are already sorted.
It is more efficient than other join methods like nested loop join or hash join for sorted datasets.
The join condition must be an equality condition.
Example: SELECT * FROM table1 INNER JOIN table2 ON table1.id = table2.i
Round duration - 30 minutes
Round difficulty - Easy
The round went excellent. I really enjoyed it. Just be confident about whatever you answer
Tip 1 : Must do Previously asked Interview as well as Online Test Questions.
Tip 2 : Go through all the previous interview experiences from Codestudio and Leetcode.
Tip 3 : Do at-least 2 good projects and you must know every bit of them.
Tip 1 : Have at-least 2 good projects explained in short with all important points covered.
Tip 2 : Every skill must be mentioned.
Tip 3 : Focus on skills, projects and experiences more.
I appeared for an interview before Mar 2021.
Round duration - 60 minutes
Round difficulty - Easy
This round went well. Interview depends on your basic knowledge of C/C++.
Given two sparse matrices MAT1
and MAT2
of integers with dimensions 'N' x 'M' and 'M' x 'P' respectively, the goal is to determine the resulting matrix produced by their multipl...
Implement a function to multiply two sparse matrices and return the resulting matrix.
Create a function that takes two sparse matrices as input and returns the resulting matrix after multiplication
Iterate through the non-zero elements of the matrices to perform the multiplication efficiently
Handle the edge cases such as empty matrices or matrices with all zero elements
Ensure the dimensions of the matrices are compatible
Tanmay and Rohit are best buddies. Tanmay gives Rohit a challenge involving an array of N natural numbers. The task is to perform and answer a series of queries on the ...
Count the number of even or odd numbers in a range of an array based on given queries.
Create an array to store the input numbers.
Iterate through the queries and update or count even/odd numbers based on the query type.
Output the count of even or odd numbers for each query of type 1 or 2.
Round duration - 30 minutes
Round difficulty - Easy
Typical HR round with behavioral problems.
Tip 1 : Must do Previously asked Interview as well as Online Test Questions.
Tip 2 : Go through all the previous interview experiences from Codestudio and Leetcode.
Tip 3 : Do at-least 2 good projects and you must know every bit of them.
Tip 1 : Have at-least 2 good projects explained in short with all important points covered.
Tip 2 : Every skill must be mentioned.
Tip 3 : Focus on skills, projects and experiences more.
I appeared for an interview in Jul 2017.
based on 1 interview
Interview experience
Senior Consultant
12
salaries
| ₹12 L/yr - ₹30.5 L/yr |
Senior Software Engineer
8
salaries
| ₹18 L/yr - ₹30 L/yr |
Accountant
7
salaries
| ₹1 L/yr - ₹4.4 L/yr |
Software Engineer2
7
salaries
| ₹13.2 L/yr - ₹18 L/yr |
Consultant
6
salaries
| ₹12 L/yr - ₹20 L/yr |
TCS
Infosys
Wipro
HCLTech