
Ques:- Implement a specialStack class which should support O(1) push O(1) pop and should return minimum element in the stack in O(1) time
Asked In :-
Alpha-e Barcode Solutions,
Right Answer:
```python
class SpecialStack:
def __init__(self):
self.stack = []
self.min_stack = []
def push(self, value):
self.stack.append(value)
if not self.min_stack or value <= self.min_stack[-1]:
self.min_stack.append(value)
def pop(self):
if self.stack:
value = self.stack.pop()
if value == self.min_stack[-1]:
self.min_stack.pop()
return value
return None
def get_min(self):
if self.min_stack:
return self.min_stack[-1]
return None
```
```python
class SpecialStack:
def __init__(self):
self.stack = []
self.min_stack = []
def push(self, value):
self.stack.append(value)
if not self.min_stack or value <= self.min_stack[-1]:
self.min_stack.append(value)
def pop(self):
if self.stack:
value = self.stack.pop()
if value == self.min_stack[-1]:
self.min_stack.pop()
return value
return None
def get_min(self):
if self.min_stack:
return self.min_stack[-1]
return None
```
Ques:- Print prime numbers in a given range and optimize the solution?
Asked In :-
Alpha-e Barcode Solutions,
Ques:- Which of the following numbers cannot be represented accurately in > binary? > a) 0.1 b) 6.5 c) 1/16 d)1.32 e) 0.590625 (not sure abt option e) > > 1. a only > 2. a and b > 3. a, b and d > 4. a, b and e > (not sure about option 3)
Asked In :-
Alpha-e Barcode Solutions,
Ques:- What is the resident set and working set of a process?
Asked In :-
Code Insight Technologies, ANSYS Software, DMI Innovations, eGain Communications, Lotte Chemical Titan, WFP, Wabtec, Extrieve Technologies, Concentric, TechnoPurple,
Ques:- What is the name and path of the default configuration file used by the syslogd daemon?
Asked In :-
sciative, LibSys, Parryware, SpiceJet, Mistral Solutions, Icon Resources, SMC Pneumatics, InfoAxon Technologies, La Net Team, DigiCert,
Ques:- You need to create a new group called sales with Bob, Mary and Joe as members. Which of the following would accomplish this?Choose one:a. Add the following line to the /etc/group file: sales:44:bob,mary,joeb. Issue the command groupadd sales.c. Issue the command groupadd -a sales bob,mary,joed. Add the following line to the /etc/group file: sales::44:bob,mary,joe
Asked In :-
Adnate IT Solutions, Sequretek IT Solutions, Navtech (Navaratan Technologies), Satrix Technologies, BuroHappold, Heathrow Airport, MV Clouds, XCMG, Alpha-e Barcode Solutions, Clipchamp,
Ques:- You want to copy the user's home directories to a new location. Which of the following commands will accomplish this?Choose one:a. cp -rP /home/* newdirb. cp -i /home/* newdirc. cp -iv /home/* newdird. cp -b /home/* newdir
Asked In :-
Kovair, Quality Kiosk, Wolseley UK, Cloudflare, Celestica Electronics, Jibe, Om Innovation Call Services, Auro, Alpha-e Barcode Solutions, Antra,
Ques:- What is Context Switch?
Asked In :-
Pennant Technologies, alcami, Raam Group, PCS-Global, Malladi Drugs & Pharmaceuticals, Constellation Software, Edunext Technologies, HUBCO, Om Innovation Call Services, Centillion Networks,
Ques:- X, Y and Z rents a pasture for Rs.870. X put in 12 horses for 8 months, Y 16 horses for 9 months and Z 18 horses for 6 months. How much should C pay?
Right Answer:
C should pay Rs. 290.
C should pay Rs. 290.
Ques:- How are the “activity time” estimates done?
Asked In :-
Medvarsity Online, Infostretch solutions, Rits Software, IPE Global, RebusCode, Miraki Technologies, Invesco, Alfanar, DIC India, DSVV,
Right Answer:
Activity time estimates are done by analyzing the scope of the project, consulting with team members and subject matter experts, using historical data from similar projects, and applying estimation techniques such as expert judgment, analogous estimating, parametric estimating, or three-point estimating.
Ques:- What does Scope management involve?
Asked In :-
Hummingbird Web Solutions, Aakit Technologies, Infostretch solutions, M/s. orange business services, Proseon Technologies, Codemind Staffing Solutions, TekWissen LLC, EY GDS, Corient Business Solutions, DWP,
Right Answer:
Scope management involves defining, controlling, and managing all the work required to complete a project successfully. This includes identifying project requirements, documenting them, and ensuring that all necessary tasks are included while preventing scope creep.
Scope management involves defining, controlling, and managing all the work required to complete a project successfully. This includes identifying project requirements, documenting them, and ensuring that all necessary tasks are included while preventing scope creep.
Ques:- How do project scheduling help achieve project execution?
Asked In :-
Indocosmo Systems, Infinity Labs LLP, Tredence Analytics Solutions, OPENSPACE SERVICES, APPS Associates Pvt., Yudiz Solutions, Lorven Technologies, Jindal Aluminium, Highbar Technocrat, Ramboll India,
Right Answer:
Project scheduling helps achieve project execution by organizing tasks, allocating resources, setting deadlines, and establishing a timeline, which ensures that the project stays on track, meets deadlines, and efficiently utilizes resources.
Project scheduling helps achieve project execution by organizing tasks, allocating resources, setting deadlines, and establishing a timeline, which ensures that the project stays on track, meets deadlines, and efficiently utilizes resources.
Ques:- What is SCR?
Right Answer:
SCR stands for Software Change Request. It is a formal request to modify a software system, typically used to document and manage changes in a project.
SCR stands for Software Change Request. It is a formal request to modify a software system, typically used to document and manage changes in a project.
Ques:- Which State contributes the maximum share of GDP in India?
Asked In :-
WSNE Consulting, Netaxis IT Solutions (p), Shipco IT, Codiant Software Technologies, GOQii Technologies, Cybage Software, Varite India, Energytech Global, SWYM, Principal Global Services,
Right Answer:
Maharashtra.
Maharashtra.
Ques:- What is your total experience?
Asked In :-
Shipco IT, Chegg India, RANDSTAD INDIA PVT, Varite India, Energytech Global, SmartData Enterprises, SWYM, Head Field Solutions, Srijan Technologies, Vestas Wind Technology India,
Right Answer:
My total experience is [insert number] years.
My total experience is [insert number] years.
Ques:- What was your achievement with the previous company?
Asked In :-
Rock Solid Solutions, Hummingbird Web Solutions, Itobuz Technologies, Aranca (Mumbai), Born Commerce, Cybage Software, SmartData Enterprises, SWYM, Deluxe entertainment services India, Digital Nirvana Information Systems (I),
Right Answer:
In my previous company, I successfully led a project that improved our software's performance by 30%, resulting in increased customer satisfaction and a 15% boost in sales.
In my previous company, I successfully led a project that improved our software's performance by 30%, resulting in increased customer satisfaction and a 15% boost in sales.
Ques:- Why do you want to change the current organization
Asked In :-
Object Frontier Software, Toxsl Technologies, Energytech Global, SmartData Enterprises, Head Field Solutions, Antier Solutions, NXP Semiconductors India, Vestas Wind Technology India, Effivity Technologies, Keka,
Right Answer:
I want to change my current organization to seek new challenges, grow my skills, and find opportunities that align better with my career goals and values.
I want to change my current organization to seek new challenges, grow my skills, and find opportunities that align better with my career goals and values.
Ques:- What is the GDP growth of India?
Asked In :-
Hidden Brains InfoTech, Namecheap Web Services, Dhruvsoft Services, QuickXpert Infotech, iB Arts Pvt. ltd, Triassic Solutions, Lucid Imaging, Aruba Networks, doodleblue, Cyber Infrastructure (P),
Right Answer:
As of my last update, India's GDP growth rate for the fiscal year 2022-2023 was approximately 7.2%. Please check the latest data for the most current figure.
As of my last update, India's GDP growth rate for the fiscal year 2022-2023 was approximately 7.2%. Please check the latest data for the most current figure.