Filter interviews by
I applied via Referral and was interviewed in Sep 2024. There was 1 interview round.
Find the maximum subarray sum using Kadane's algorithm
Initialize max_sum and current_sum to 0
Iterate through the array and update current_sum by adding the current element
If current_sum becomes negative, reset it to 0
Update max_sum if current_sum is greater than max_sum
The architecture of my project is based on microservices with a combination of front-end and back-end technologies.
Utilized microservices architecture to break down the project into smaller, independent services
Implemented front-end using React.js for dynamic user interfaces
Developed back-end services using Node.js and Express.js for handling business logic and data processing
Used Docker for containerization and Kubern...
I applied via Referral and was interviewed in Sep 2024. There were 2 interview rounds.
Kadane's Algorithm is used to find the maximum sum of a contiguous subarray within an array of integers.
Initialize two variables: max_so_far and max_ending_here to track the maximum sum.
Iterate through the array and update max_ending_here by adding the current element or starting a new subarray.
Update max_so_far if max_ending_here becomes greater than max_so_far.
Return max_so_far as the maximum subarray sum.
The number of ways to reach the rightmost cell from the topmost cell in a 2D matrix can be calculated using dynamic programming.
Use dynamic programming to calculate the number of ways to reach each cell in the matrix.
At each cell, the number of ways to reach it is the sum of the number of ways to reach the cell above it and the cell to the left of it.
The value in the rightmost cell will give the total number of ways to
Top trending discussions
posted on 2 May 2024
I applied via Naukri.com and was interviewed in Nov 2024. There was 1 interview round.
Custom hooks in React are reusable functions that allow you to extract component logic into separate functions for better code organization and reusability.
Custom hooks are created using the 'use' prefix and can be used to share logic between components.
Use cases for custom hooks include fetching data from an API, handling form state, managing local storage, and more.
Example of a custom hook for API call: const useFetc...
useMemo is used to memoize a value, while useCallback is used to memoize a function.
useMemo is used to memoize a value and recompute it only when its dependencies change.
useCallback is used to memoize a callback function and prevent unnecessary re-renders.
Example: useMemo can be used to memoize the result of a complex computation, while useCallback can be used to memoize an event handler function.
Class-based components use ES6 classes and have lifecycle methods, while functional components are simpler and use functions.
Class-based components use ES6 classes to create components, while functional components are created using functions.
Class-based components have lifecycle methods like componentDidMount and componentDidUpdate, while functional components do not.
Functional components are simpler and more lightweig...
Implementing the lifecycle of a React component in a functional component
Use the useEffect hook to replicate lifecycle methods like componentDidMount, componentDidUpdate, and componentWillUnmount
Pass an empty array as the second argument to useEffect to mimic componentDidMount
Pass a variable or state as the second argument to useEffect to mimic componentDidUpdate
Return a cleanup function inside useEffect to mimic compo
Various state management techniques in React include Context API, Redux, and local state.
Context API: React's built-in solution for passing data through the component tree without having to pass props down manually at every level.
Redux: A popular state management library for React applications, allowing for a centralized store to manage application state.
Local state: Managing state within individual components using us
Redux is a predictable state container for JavaScript apps. Middlewares are functions that intercept actions before they reach the reducer.
Redux follows a unidirectional data flow architecture.
Middlewares in Redux are functions that can intercept, modify, or dispatch actions.
Common use cases for middlewares include logging, asynchronous API calls, and handling side effects.
Examples of popular Redux middlewares are Redu...
Hoisting in JavaScript is the behavior where variable and function declarations are moved to the top of their containing scope during the compilation phase.
Variable declarations are hoisted to the top of their scope, but not their initializations.
Function declarations are fully hoisted, meaning they can be called before they are declared.
Hoisting can lead to unexpected behavior if not understood properly.
Event bubbling is the propagation of events from the target element up through its ancestors in the DOM tree.
Events triggered on a child element will 'bubble up' and trigger on parent elements.
Event listeners can be attached to parent elements to handle events from multiple child elements.
Stopping event propagation can be done using event.stopPropagation() or event.stopImmediatePropagation().
Block scope and function scope are two types of scopes in JavaScript that determine the visibility and accessibility of variables.
Block scope refers to the visibility of variables within a block of code enclosed by curly braces. Variables declared with 'let' and 'const' have block scope.
Function scope refers to the visibility of variables within a function. Variables declared with 'var' have function scope.
Variables de...
Yes, I have experience working with semantic tags in HTML.
Used semantic tags like <header>, <nav>, <main>, <section>, <article>, <aside>, <footer> for better structure and SEO.
Understand the importance of using semantic tags for accessibility and search engine optimization.
Semantic tags help in organizing content and making it more readable for developers and browsers.
Various methods for creating an object in JavaScript include object literals, constructor functions, ES6 classes, and Object.create() method.
Object literals: var obj = { key: value };
Constructor functions: function ObjectName() { this.key = value; } var obj = new ObjectName();
ES6 classes: class ClassName { constructor() { this.key = value; } } var obj = new ClassName();
Object.create() method: var obj = Object.create(pr
Shallow copy only copies the references of nested objects, while deep copy creates new copies of nested objects.
Shallow copy creates a new object but does not create copies of nested objects, only copies their references.
Deep copy creates a new object and also creates new copies of all nested objects.
Shallow copy can be achieved using Object.assign() or spread operator, while deep copy can be achieved using JSON.parse(
The code will throw an error because 'a' is declared but not initialized.
The code will result in a ReferenceError because 'a' is declared but not assigned a value.
Variables declared with 'const' must be initialized at the time of declaration.
Initializing 'a' with a value before calling test() will prevent the error.
CSS can be used to arrange elements in a row and column layout using flexbox or grid layout properties.
Use display: flex; for a row layout and display: flex; flex-direction: column; for a column layout
Use justify-content and align-items properties to align items in the main axis and cross axis respectively
For grid layout, use display: grid; and grid-template-columns or grid-template-rows to define the layout
Yes, I have utilized CSS preprocessors such as SASS and LESS.
I have experience using SASS to streamline my CSS workflow by utilizing variables, mixins, and nesting.
I have also worked with LESS to improve code organization and maintainability through features like variables and functions.
The color applied will be based on the specificity of the selector, with ID having higher specificity than class.
ID has higher specificity than class in CSS
Color applied will be based on the selector with higher specificity
Example: If ID selector has color red and class selector has color blue, the color applied will be red
posted on 3 Jan 2025
I applied via Referral and was interviewed in Dec 2024. There were 2 interview rounds.
Deep copy creates a new copy of an object with its own unique memory space, while shallow copy creates a new object that references the same memory locations as the original object.
Deep copy duplicates all nested objects, while shallow copy only duplicates the references to nested objects.
Deep copy ensures that changes to the copied object do not affect the original object, while shallow copy may lead to unintended sid...
Use a loop to swap characters of two strings without using strcpy function.
Create two arrays of characters to store the strings
Use a loop to iterate through each character of the strings and swap them
Ensure to handle cases where strings have different lengths
I applied via campus placement at Lovely Professional University (LPU) and was interviewed in Oct 2024. There were 3 interview rounds.
It contain 40 question which is very easy
It contain 3 coding question
I applied via Recruitment Consulltant and was interviewed in Nov 2024. There were 3 interview rounds.
It was an amazing interview.
S abJDQdlqd qk; qdkq;q bdkq;d
I applied via Campus Placement and was interviewed in Oct 2024. There were 5 interview rounds.
Basic aptitudes question in online test
Two coding Q online test
I want to join Global Logic because of their reputation for cutting-edge technology solutions and collaborative work environment.
Global Logic is known for their innovative technology solutions
I am impressed by the collaborative work environment at Global Logic
I believe Global Logic offers great opportunities for professional growth and development
posted on 4 Nov 2024
I applied via Company Website and was interviewed in May 2024. There was 1 interview round.
The interviewer was a team Lead Engineer. He first asked me a few questions about database fundamentals (Cluster Index, Composite Index, ACID, etc). Then he presented me with a coding question on codility (LC Hard String question). He was very helpful during the interview and nudged me towards the right direction when I got stuck.
based on 2 interviews
Interview experience
Junior Software Developer
4
salaries
| ₹2.2 L/yr - ₹3.7 L/yr |
Product Manager
4
salaries
| ₹24 L/yr - ₹35.3 L/yr |
Junior Software Test Engineer
4
salaries
| ₹2.7 L/yr - ₹4 L/yr |
Software Developer
3
salaries
| ₹4 L/yr - ₹6.4 L/yr |
UI Developer
3
salaries
| ₹3 L/yr - ₹6.2 L/yr |
Cognizant
Teleperformance
Reliance Retail
iEnergizer