Miscellaneous programs
-
Find the next greater number with same number of digits. Solution here
-
Simple class design: Constructor, Destructor, and Operator Overloading. It is a HackerRank Challenge.
-
Serialize Binary Tree
-
Reverse an integer even if it's negative.
-
Predict the maximum profit to buy and sell a stock.
-
Find the periods where the profit of buying and selling stocks maximizes.
-
Reverse a string in-place
-
Find either one or two missing numbers in a list.
-
Find the k-missing numbers
-
A query to find the total monetary value of purchases ordered by categories. It requires the databases available at w3schools.com.
-
This query calculates the median value of geographic latitudes stored in a table available at HackerRank.
-
List hackers in a leader-board according to the total score of challenges: HackerRank.
-
A query to find the total quantity of products ordered. It requires the databases available at w3schools.com.
-
A query to find the number of orders per product category as given by the orders. It requires the databases available at w3schools.com.