Software Developers Interview Questions

96,343 software developers interview questions shared by candidates

you are given an unsorted array of integers which are showing the price of a stock during the time. you wanna buy some amount of the stocks at some point, and sell them at a later time, so that to maximize your revenue. Asked for O(n) algorithm.
avatar

Software Developer

Interviewed at Broadway Technology

4.2
Oct 15, 2012

you are given an unsorted array of integers which are showing the price of a stock during the time. you wanna buy some amount of the stocks at some point, and sell them at a later time, so that to maximize your revenue. Asked for O(n) algorithm.

1. Lock and Unlock a node of the given tree, Structure of the tree: one root multiple childs (>2). problem: find solution for locking and unlocking the nodes logic with log(N) complexity. Lock(node): returns boolean we can lock the node if and only if ancestor nodes and descendant nodes are not locked. if they are locked then return false else return true Unlock(node): returns boolean if node is already locked then unlock it and return true else return false
avatar

Software Developer

Interviewed at JUSPAY

4
Dec 28, 2019

1. Lock and Unlock a node of the given tree, Structure of the tree: one root multiple childs (>2). problem: find solution for locking and unlocking the nodes logic with log(N) complexity. Lock(node): returns boolean we can lock the node if and only if ancestor nodes and descendant nodes are not locked. if they are locked then return false else return true Unlock(node): returns boolean if node is already locked then unlock it and return true else return false

Viewing 441 - 450 interview questions

Glassdoor has 96,343 interview questions and reports from Software developers interviews. Prepare for your interview. Get hired. Love your job.