Tutorials
Courses
Go Premium
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
32.1K+ articles
DSA
20.0K+ articles
Amazon
1.9K+ articles
Microsoft
811+ articles
Accolite
305+ articles
Adobe
280+ articles
Morgan Stanley
229+ articles
MakeMyTrip
214+ articles
SAP Labs
209+ articles
Snapdeal
166+ articles
Hike
99 posts
Recent Articles
Popular Articles
Hike Recruitment Process
Last Updated: 23 July 2025
This article will give you information about the company, its recruitment process, sample questions that have been asked previously, lots of experiences shared by other as...
read more
Interview Experiences
Hike
Hike Interview Experience for Buisness Development Executive (Off-Campus)
Last Updated: 01 September 2023
There were around 70 candidates for the interview so they decided to conduct first a GD round by making 10 candidate groups and by choosing only the best-performing candid...
read more
Interview Experiences
Hike
Off-Campus
Experiences
C Program For Stock Buy Sell To Maximize Profit
Last Updated: 23 July 2025
Efficient approach: If we are allowed to buy and sell only once, then we can use following algorithm. Maximum difference between two elements. Here we are allowed to buy a...
read more
C Programs
DSA
Arrays
Microsoft
Amazon
Morgan Stanley
Oracle
Flipkart
Directi
Samsung
Goldman Sachs
Walmart
Paytm
Accolite
Hike
Sapient
SAP Labs
MakeMyTrip
Quikr
Ola Cabs
Pubmatic
Swiggy
C Program For Sorting An Array Of 0s, 1s and 2s
Last Updated: 23 July 2025
Given an array A[] consisting 0s, 1s and 2s. The task is to write a function that sorts the given array. The functions should put all 0s first, then all 1s and all 2s in l...
read more
Sorting
C Programs
DSA
Arrays
Microsoft
Amazon
Adobe
Morgan Stanley
Qualcomm
Walmart
Yatra.com
Snapdeal
Paytm
Hike
MAQ Software
SAP Labs
MakeMyTrip
Ola Cabs
Java Program For Sorting An Array Of 0s, 1s and 2s
Last Updated: 23 July 2025
Given an array A[] consisting 0s, 1s and 2s. The task is to write a function that sorts the given array. The functions should put all 0s first, then all 1s and all 2s in l...
read more
Sorting
Java Programs
DSA
Arrays
Microsoft
Amazon
Adobe
Morgan Stanley
Qualcomm
Walmart
Yatra.com
Snapdeal
Paytm
Hike
MAQ Software
SAP Labs
MakeMyTrip
Ola Cabs
Python Program For Sorting An Array Of 0s, 1s and 2s
Last Updated: 23 July 2025
Given an array A[] consisting 0s, 1s and 2s. The task is to write a function that sorts the given array. The functions should put all 0s first, then all 1s and all 2s in l...
read more
Sorting
Python Programs
DSA
Arrays
Microsoft
Amazon
Adobe
Morgan Stanley
Qualcomm
Walmart
Yatra.com
Snapdeal
Paytm
Hike
MAQ Software
SAP Labs
MakeMyTrip
Ola Cabs
PHP Program to Sort an Array of 0s, 1s and 2s
Last Updated: 23 July 2025
Given an array A[] consisting 0s, 1s and 2s. The task is to write a function that sorts the given array. The functions should put all 0s first, then all 1s and all 2s in l...
read more
Sorting
Web Technologies
PHP Programs
DSA
Arrays
Microsoft
Amazon
Adobe
Morgan Stanley
Qualcomm
Walmart
Yatra.com
Snapdeal
Paytm
Hike
MAQ Software
SAP Labs
MakeMyTrip
Ola Cabs
Javascript Program For Sorting An Array Of 0s, 1s and 2s
Last Updated: 23 July 2025
Given an array A[] consisting 0s, 1s and 2s. The task is to write a function that sorts the given array. The functions should put all 0s first, then all 1s and all 2s in l...
read more
JavaScript
Microsoft
Amazon
Adobe
Morgan Stanley
Qualcomm
Walmart
Yatra.com
Snapdeal
Paytm
Hike
MAQ Software
SAP Labs
MakeMyTrip
Ola Cabs
C++ Program For Stock Buy Sell To Maximize Profit
Last Updated: 23 July 2025
The cost of a stock on each day is given in an array, find the max profit that you can make by buying and selling in those days. For example, if the given array is {100, 1...
read more
C++ Programs
DSA
Arrays
Microsoft
Amazon
Morgan Stanley
Oracle
Flipkart
Directi
Samsung
Goldman Sachs
Walmart
Paytm
Accolite
Hike
Sapient
SAP Labs
MakeMyTrip
Quikr
Ola Cabs
Pubmatic
Swiggy
Java Program For Stock Buy Sell To Maximize Profit
Last Updated: 23 July 2025
The cost of a stock on each day is given in an array, find the max profit that you can make by buying and selling in those days. For example, if the given array is {100, 1...
read more
Java Programs
DSA
Arrays
Microsoft
Amazon
Morgan Stanley
Oracle
Flipkart
Directi
Samsung
Goldman Sachs
Walmart
Paytm
Accolite
Hike
Sapient
SAP Labs
MakeMyTrip
Quikr
Ola Cabs
Pubmatic
Swiggy
Javascript Program for Largest Sum Contiguous Subarray
Last Updated: 23 July 2025
Write an efficient program to find the sum of contiguous subarray within a one-dimensional array of numbers that has the largest sum.Kadane's Algorithm:Initialize: max_...
read more
JavaScript
Microsoft
Amazon
Morgan Stanley
Oracle
Flipkart
Samsung
D-E-Shaw
Walmart
VMWare
Snapdeal
Accolite
Payu
Zoho
Hike
MakeMyTrip
Visa
Housing.com
Ola Cabs
24*7 Innovation Labs
MetLife
FactSet
Teradata
OYO
Amazon-Question
Visa-Question
subarray
subarray-sum
C++ Program For Printing Nth Node From The End Of A Linked List
Last Updated: 23 July 2025
Given a Linked List and a number n, write a function that returns the value at the n'th node from the end of the Linked List.For example, if the input is below list and n ...
read more
C++
Linked Lists
Amazon
Adobe
Qualcomm
Snapdeal
Accolite
Hike
MAQ Software
Epic Systems
Citicorp
Monotype Solutions
FactSet
Java Program For Printing Nth Node From The End Of A Linked List
Last Updated: 23 July 2025
Given a Linked List and a number n, write a function that returns the value at the n'th node from the end of the Linked List.For example, if the input is below the list an...
read more
Java
Linked Lists
Amazon
Adobe
Qualcomm
Snapdeal
Accolite
Hike
MAQ Software
Epic Systems
Citicorp
Monotype Solutions
FactSet
Java Program For Printing Nth Node From The End Of A Linked List(Duplicate)
Last Updated: 23 July 2025
Given a Linked List and a number n, write a function that returns the value at the n'th node from the end of the Linked List.For example, if the input is below list and n ...
read more
Java
Linked Lists
Amazon
Adobe
Qualcomm
Snapdeal
Accolite
Hike
MAQ Software
Epic Systems
Citicorp
Monotype Solutions
FactSet
C++ Program For Finding The Middle Element Of A Given Linked List
Last Updated: 23 July 2025
Given a singly linked list, find the middle of the linked list.For example, if the given linked list is 1-2-3-4-5 then the output should be 3.If there are even nodes, then...
read more
C++
Linked Lists
Microsoft
Amazon
Adobe
Morgan Stanley
Flipkart
Qualcomm
Samsung
VMWare
Payu
Zoho
Hike
Nagarro
MAQ Software
GE
Veritas
Wipro
1
2
3
4
5
6
7
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !