i
Calsoft
Filter interviews by
Implement a stack using the given structure.
Create a struct with an array to store the stack elements and an index to keep track of the top element
Implement functions like push, pop, and peek to manipulate the stack
Ensure to handle stack overflow and underflow cases
Concurrency is the ability to run multiple tasks simultaneously, achieving parallelism.
Go uses goroutines to achieve concurrency
Goroutines are lightweight threads managed by the Go runtime
Concurrency in Go is achieved using channels for communication between goroutines
Types of channels in Go and their use cases
Buffered channels: Allow multiple senders to send data without blocking until the buffer is full
Unbuffered channels: Synchronize goroutines by blocking sender until receiver is ready
Bidirectional channels: Allow both sending and receiving data
Receive-only channels: Restrict channel to only receive data
Send-only channels: Restrict channel to only send data
I applied via Company Website and was interviewed in Jan 2023. There were 2 interview rounds.
Definition of struct, interface, method, and function.
Struct is a composite data type that groups together zero or more values with different types.
Interface is a collection of method signatures that a type can implement.
Method is a function that has a receiver argument.
Function is a block of code that performs a specific task and can be called from other parts of the program.
Implementing an interface with methods in Go
Define an interface with method signatures
Create a struct that implements the interface methods
Use the 'implements' keyword to associate the struct with the interface
Call the interface methods on the struct instance
To create a package, define a new directory and add a file with package name and functions. My project is a web scraper.
Create a new directory with package name
Add a file with package name and functions
Import the package in main program
Use the functions in the package
Example: package name - scraper, functions - scrapeWebsite(url string) string
Example usage: import 'scraper', scraper.scrapeWebsite('https://example.com')
Arrays have fixed size while slices are dynamic. Slices are references to arrays.
Arrays are declared with a fixed size while slices are declared without a size.
Slices are references to arrays and can be resized dynamically.
Arrays are passed by value while slices are passed by reference.
Slices have built-in functions like append() and copy() for manipulation.
Example: var arr [3]int = [3]int{1, 2, 3} and var sli []int =
Go is a statically typed, compiled language with a focus on concurrency and simplicity.
Go has a simpler syntax compared to other languages like Java or C++
Go has built-in concurrency support with goroutines and channels
Go has a garbage collector that automatically manages memory
Go compiles to machine code, making it faster than interpreted languages like Python
Go has a standard library that includes many useful package
Top trending discussions
I applied via Naukri.com and was interviewed in Nov 2023. There were 2 interview rounds.
Slice is a dynamically-sized, flexible view of elements in an array. Concurrency is the ability to run multiple tasks at the same time, while parallelism is the actual execution of multiple tasks simultaneously.
Slice in Go is a reference to a portion of an array. It allows for dynamic resizing and manipulation of elements.
Example: var s []int = make([]int, 5) // creates a slice of length 5
Interfaces in Go define a set ...
Coding questions on slice and go routines
I applied via Job Portal and was interviewed before May 2022. There were 4 interview rounds.
Find unique elements, basic of golang and micro service's and any DB knowledge along with Any cloud services knowledge
I applied via Naukri.com and was interviewed in Oct 2024. There were 3 interview rounds.
Online zoom coding test will be there - 4 questions - 2 about output of code & 2 about technical questions.
Polymorphism is the ability of a single function or method to operate on different types of data.
Polymorphism allows objects of different classes to be treated as objects of a common superclass.
Virtual polymorphism is achieved through virtual functions in C++.
Virtual functions allow a function in a base class to be overridden in a derived class.
Example: Animal class with virtual function 'makeSound' overridden in Dog a
Virtual polymorphism allows objects of different classes to be treated as objects of a common superclass.
Create a base class with virtual functions
Create derived classes that override the virtual functions
Use pointers or references of the base class to call the overridden functions
Hackearth online coding test for 1 hour
Use sorting or heap data structure to find k largest elements in an array of strings.
Sort the array in descending order and return the first k elements.
Use a max heap data structure to efficiently find the k largest elements.
Examples: ['apple', 'banana', 'orange', 'kiwi'], k=2 -> ['orange', 'kiwi']
Remove duplicates from array of strings
Create a Set to store unique strings
Iterate through the array and add each string to the Set
Convert the Set back to an array to get the unique strings
Technology advantage or not
All aptitude topics,logical reasoning
posted on 4 Nov 2024
I applied via Approached by Company and was interviewed in Jun 2024. There were 3 interview rounds.
Design a RESTful API for CRUD operations on user resources.
Use HTTP methods like GET, POST, PUT, DELETE for CRUD operations
Create endpoints like /users for listing all users, /users/{id} for specific user
Use status codes like 200 for success, 404 for not found, 400 for bad request
Implement authentication and authorization mechanisms for security
Include request and response body formats like JSON or XML
based on 3 interviews
Interview experience
Development Engineer
337
salaries
| ₹3.3 L/yr - ₹11 L/yr |
Senior Development Engineer
222
salaries
| ₹5.5 L/yr - ₹20 L/yr |
Softwaretest Engineer
128
salaries
| ₹3 L/yr - ₹7 L/yr |
Principal Development Engineer
122
salaries
| ₹10 L/yr - ₹33 L/yr |
Senior Software Engineer
88
salaries
| ₹6 L/yr - ₹22.7 L/yr |
Persistent Systems
LTIMindtree
Mphasis
TCS