Filter interviews by
Use setInterval to increment counter by 1 every second in React.
Use useState to store the counter value.
Use useEffect to start the interval and clean it up on component unmount.
Increment the counter by 1 every second using setInterval.
Rearrange an array by moving all zeros to the end while maintaining the order of non-zero elements.
Create a new array to store non-zero elements
Iterate through the original array and add non-zero elements to the new array
Count the number of zeros in the original array and add them to the new array at the end
Top trending discussions
I appeared for an interview before Dec 2020.
Round duration - 360 minutes
Round difficulty - Medium
Basically TCS conduct its flagship event named as CODEVITA . And it offers Internship to prefinal (3rd )year students .
Given an array of integers arr
, where arr[i]
represents the number of pages in the i-th
book, and an integer m
representing the number of students, allocate all the books ...
Allocate books to students in a way that minimizes the maximum number of pages assigned to a student.
Iterate through possible allocations and calculate the maximum pages assigned to a student.
Find the minimum of these maximums to get the optimal allocation.
Return the minimum pages allocated in each test case, or -1 if not possible.
Tip 1 : Good understanding of Data Structure and Algorithms
Tip 2 : Be clear in your Core Subjects.
Tip 3 : Do at least 1 good Project .
Tip 4 : Be humble and speak truth .
Tip 1 : Simple and Crisp .
Tip 2 : Do host your project and mention the link in the resume .
Tip 3 : Single Page
I applied via Naukri.com and was interviewed in Nov 2020. There were 3 interview rounds.
Remove duplicate elements from an Array
Use the Set object to remove duplicate elements
Convert the Set back to an array using the spread operator
If the array contains objects, use a custom comparison function
Use the accept attribute in the input tag to only allow jpg and png files.
Add accept attribute to input tag with 'image/jpeg, image/png' value
This will restrict file selection to only jpg and png files
Use flexbox to center align a div in just one line in CSS.
Set the parent container's display property to flex.
Use the justify-content property with the value 'center' to horizontally center the div.
Use the align-items property with the value 'center' to vertically center the div.
Use React Router's Redirect component to redirect to login page if user is not logged in.
Create a PrivateRoute component that checks if user is logged in
If user is not logged in, redirect to login page using Redirect component
Wrap the routes that require authentication with PrivateRoute component
Event bubbling is the process of propagating an event from the innermost element to its parent elements in the DOM hierarchy.
Events in JavaScript are triggered on elements and then propagate up the DOM tree.
During event bubbling, an event triggered on a child element will also trigger on its parent elements.
This allows for event delegation, where a single event handler can be used for multiple elements.
Event.stopPropag...
I applied via Recruitment Consultant and was interviewed in Mar 2021. There were 3 interview rounds.
I appeared for an interview in Mar 2024.
1. Client-side scripting runs on the user's browser, while server-side scripting runs on the server. 2. Destructuring is a way to extract values from objects and arrays. 3. HOC stands for Higher Order Component in React. 4. Combining nested arrays involves flattening them into a single array. 5. Counting vowels in a string involves iterating through the characters and checking if they are vowels.
Client-side scripting e...
Finding missing values in array using JavaScript and incrementing/decrementing count in React.
Use JavaScript to find missing values in array by comparing with a reference array.
Implement logic to increment and decrement count in React based on user interactions.
Example: const array = ['apple', 'banana', 'orange']; const referenceArray = ['apple', 'banana', 'grape'];
Example: Implement a counter component in React that i...
I applied via Recruitment Consulltant and was interviewed in Jan 2022. There were 5 interview rounds.
I expect a competitive salary that reflects my skills, experience, and the industry standards for front-end developers.
Based on my research, the average salary for front-end developers in this region is between $70,000 and $90,000.
I have over 5 years of experience, which positions me towards the higher end of that range.
I am also open to discussing benefits and opportunities for growth, which can influence my overall c...
I'm seeking new challenges to grow my skills and contribute to innovative projects in a dynamic environment.
Desire for professional growth: I'm eager to learn new technologies like React and improve my coding skills.
Looking for a collaborative environment: I thrive in teams that encourage brainstorming and creativity, like my previous role.
Interest in impactful projects: I'm motivated by work that makes a difference, s...
based on 1 interview experience
based on 1 review
Rating in categories
Software Engineer
37
salaries
| ₹3.8 L/yr - ₹9.3 L/yr |
Devops Engineer
36
salaries
| ₹3.2 L/yr - ₹8 L/yr |
Softwaretest Engineer
18
salaries
| ₹3.8 L/yr - ₹7 L/yr |
Software Developer
14
salaries
| ₹3.5 L/yr - ₹8.4 L/yr |
Data Analyst
11
salaries
| ₹3.6 L/yr - ₹8 L/yr |
TCS
Accenture
Wipro
Cognizant