q) Given a square grid with 0 and 1 , considering 1 as land and 0 as water how you find number of connected land in the grid ?
Backend Developer Interview Questions
15,496 backend developer interview questions shared by candidates
Tell details about yourself, you can add your background, growing up, failure/success moment, ... anything.
In python asked me, L1 = [1,2,3,4] L2 = L1 L3 = L2.copy() L2[0] = [5] print(L1,L2,L3) What will be the answer?
Given the following code: class Asset { id: string; companyId: string; body: any; public equals(asset: Asset): boolean { return this.companyId == asset.companyId && this.id == asset.id; } } const diffUpdateAssets = (apiAssets: Asset[], dbAssets: Asset[]): Asset[] => { return apiAssets.filter( (asset: Asset) => dbAssets.find(asset.equals) ); }; const diffInsertAssets = (apiAssets: Asset[], dbAssets: Asset[], Map map): Asset[] => { return apiAssets.filter( (asset: Asset) => !dbAssets.find(asset.equals) ); }; const diffDeleteAssets = (apiAssets: Asset[], dbAssets: Asset[]): Asset[] => { return dbAssets.filter( (asset: Asset) => !apiAssets.find(asset.equals) ); }; export const syncAssets = (apiAssets: Asset[], dbAssets: Asset[]) => { return { toInsert: diffInsertAssets(apiAssets, dbAssets), toDelete: diffDeleteAssets(apiAssets, dbAssets), toUpdate: diffUpdateAssets(apiAssets, dbAssets), }; }; 1. Explain what the above code does. What's the time complexity of the code. How it can be improved? how this can be imporved. 2. Simple subquery / inner query SQL question, just learn sub queries. 3. Design question: All of our integrations in DoControl are based on webhooks notifications from the SaaS providers. In order to process those messages we perform a registration of our predefined POST webhook endpoint that will accept those events. Please plan a basic flow which will: a. Receive message from Google Drive b. Enrich its data with an api call performed per each event c. Insert the enriched record to a database.
Weigh several balls to find the heaviest in O(log n) time on a scale. This is worded so strangely that it may not be obvious at first what you're trying to solve. You're just trying to find the most efficient (least measurements) solution. "You have 9 balls that are identical but 1 weighs more than the others. Using a balance scale, how could you find the heavier ball efficiently, conserving the number of measurements?"
Given a list of positive integers and another integer, determine if any subset of that list sums to the standalone integer.
HackerRank exercise, which was a regular one that you can prepare for on the platform, with the option to choose your preferred programming language.
Trivial questions about Web Development.
Can you tell us about Dependency Injection and Inversion of Control.
Q: Was I happy being a contractor, not an employee. Kraken have no UK entity and cannot take on permanent UK staff.
Viewing 361 - 370 interview questions