Geeky Codes

Geeky Codes

Share

Its technical writing group where we can try to solve user problem in easy way. share your questions

Hackerrank | Electronics Shop 08/01/2025

A person wants to determine the most expensive computer keyboard and USB drive that can be purchased with a give budget. Given price lists for keyboards and USB drives and a budget, find the cost to buy them. If it is not possible to buy both items, return -1. Example b=60 keyboards= drives= The person can buy a 40 keyboard+12 USB drive=52, or a 50 keyboard +8 USB Drive....

Hackerrank | Electronics Shop A person wants to determine the most expensive computer keyboard and USB drive that can be purchased with a give budget.

Geeky Codes-Amazon Data Science Interview Question 08/01/2025

If you're working with a very large corpus of documents and limited computational resources, how would you optimize your summarization model? In the era of massive data, summarization models play a critical role in distilling information from large document corpora. However, working with limited computational resources demands strategic optimization to ensure efficiency and effectiveness. Below, we explore several strategies to optimize summarization models under such constraints....

Geeky Codes-Amazon Data Science Interview Question If you’re working with a very large corpus of documents and limited computational resources, how would you optimize your summarization model? In the era of massive data, summarization models …

Hackerrank | Counting Valleys 07/01/2025

An avid hiker keeps meticulous records of their hikes. During the last hike that took exactly steps, for every step it was noted if it was an uphill, U, or a downhill D, step. Hikes always start and end at sea level, and each step up or down represents 1 a unit change in altitude. We define the following terms:...

Hackerrank | Counting Valleys An avid hiker keeps meticulous records of their hikes. During the last hike that took exactly steps, for every step it was noted if it was an

Geeky Codes-Hackerrank | Apple and Orange 07/01/2025

Sam's house has an apple tree and an orange tree that yield an abundance of fruit. Using the information given below, determine the number of apples and oranges that land on Sam's house. In the diagram below: The red region denotes the house, where s is the start point, and t is the endpoint. The apple tree is to the left of the house, and the orange tree is to its right....

Geeky Codes-Hackerrank | Apple and Orange Sam’s house has an apple tree and an orange tree that yield an abundance of fruit. Using the information given below, determine the number of apples and oranges that land on Sam’s house…

Geeky Codes-Hackerrank | Drawing Book 07/01/2025

A teacher asks the class to open their books to a page number. A student can either start turning pages from the front of the book or from the back of the book. They always turn pages one at a time. When they open the book, page is always on the right side: When they flip page 1 , they see pages 2 and 3....

Geeky Codes-Hackerrank | Drawing Book A teacher asks the class to open their books to a page number. A student can either start turning pages from the front of the book or from the back of the book. They always turn pages one at a time…

Geeky Codes-Hackerrank | Sales by Match 07/01/2025

There is a large pile of socks that must be paired by color. Given an array of integers representing the color of each sock, determine how many pairs of socks with matching colors there are. Example n=9 arr= There is one pair of color and one of color . There are three odd socks left, one of each color. The number of pairs is ....

Geeky Codes-Hackerrank | Sales by Match There is a large pile of socks that must be paired by color. Given an array of integers representing the color of each sock, determine how many pairs of socks with matching colors there are. Exampl…

Geeky Codes-How to Extract a zipfile in AWS EC2 from S3 07/01/2025

Handling data stored on Amazon S3 and extracting files in a Python environment on an EC2 instance can be a common task in data processing workflows. In this blog post, we'll walk through the process of extracting a tar.gz file from an S3 bucket and storing the extracted files back in S3 using the boto3 library. Prerequisites Before we begin, ensure you have the following:...

Geeky Codes-How to Extract a zipfile in AWS EC2 from S3 Handling data stored on Amazon S3 and extracting files in a Python environment on an EC2 instance can be a common task in data processing workflows. In this blog post, we’ll walk through the …

Geeky Codes-Hackerrank | Bill Division 07/01/2025

Two friends Anna and Brian, are deciding how to split the bill at a dinner. Each will only pay for the items they consume. Brian gets the check and calculates Anna's portion. You must determine if his calculation is correct. For example, assume the bill has the following prices: bill= . Anna declines to eat item k=bill[2], which costs 6. If Brian calculates the bill correctly, Anna will pay (2+4)/2=3 ....

Geeky Codes-Hackerrank | Bill Division Two friends Anna and Brian, are deciding how to split the bill at a dinner. Each will only pay for the items they consume. Brian gets the check and calculates Anna’s portion. You must determi…

Geeky Codes-Hackerrank | Migratory Birds 07/01/2025

Given an array of bird sightings where every element represents a bird type id, determine the id of the most frequently sighted type. If more than 1 type has been spotted that maximum amount, return the smallest of their ids. Example arr= There are two each of types 1 and 2, and one sighting of type 3 . Pick the lower of the two types seen twice: type 1....

Geeky Codes-Hackerrank | Migratory Birds Given an array of bird sightings where every element represents a bird type id, determine the id of the most frequently sighted type. If more than 1 type has been spotted that maximum amount, retur…

Geeky Codes-Understanding and Implementing Batch Gradient Descent for Linear Regression in Python 07/01/2025

Machine learning algorithms often involve optimizing a model to fit the given data. One such optimization technique is gradient descent, a fundamental algorithm used to minimize a cost function. In this tutorial, we'll explore the implementation of batch gradient descent for a simple linear regression problem using Python and NumPy. Introduction Linear regression is a common approach in machine learning for modeling the relationship between a dependent variable and one or more independent variables....

Geeky Codes-Understanding and Implementing Batch Gradient Descent for Linear Regression in Python Machine learning algorithms often involve optimizing a model to fit the given data. One such optimization technique is gradient descent, a fundamental algorithm used to minimize a cost function. In…

Geeky Codes-Hackerrank | Grading Students 07/01/2025

HackerLand University has the following grading policy: Every student receives a grade in the inclusive range from 0 to 100. Any less than 40 is a failing grade. Sam is a professor at the university and likes to round each student's according to these rules: If the difference between the grade and the next multiple of 5 is less than 3, round up to the next multiple of 5 ....

Geeky Codes-Hackerrank | Grading Students HackerLand University has the following grading policy: Every student receives a grade in the inclusive range from 0 to 100. Any  less than 40  is a failing grade…

Geeky Codes-Understanding Descriptive Statistics: A Comprehensive Guide 30/12/2024

Descriptive Statistics Define mean, median, and mode. How do they differ? What is the difference between population variance and sample variance? How do outliers impact mean and median? Explain the concept of a quartile and interquartile range. What is skewness and kurtosis? How can you measure the spread of data? What is a boxplot and what information does it convey?...

Geeky Codes-Understanding Descriptive Statistics: A Comprehensive Guide Descriptive Statistics Define mean, median, and mode. How do they differ? What is the difference between population variance and sample variance? How do outliers impact mean and median? Explain the…

Want your school to be the top-listed School/college?