Skip to content

Geeky Codes

Programming, AI, Machine Learning & Software Development Tutorials

  • Home
  • Python
  • Machine Learning
  • Data Science
  • Interview Questions
  • Data Structures and Algorithms
  • Interview
  • Machine Learning From Scratch

Category: Python

Longest Consecutive Sequence in Python: O(n) Hash Set Solution Explained
Python

Longest Consecutive Sequence in Python: O(n) Hash Set Solution Explained

Geeky CodesJune 25, 2026June 25, 2026

What Is Longest Consecutive Sequence in Python? The Longest Consecutive Sequence in Python problem is one of the most popular…

Inverting a Character Frequency Map in Python
Data Structures and AlgorithmsInterviewInterview QuestionsPython

Inverting a Character Frequency Map in Python

Geeky CodesJune 13, 2026June 13, 2026

Problem Statement Given a string containing lowercase English letters, compute the frequency of each character and then invert the mapping…

Data Structures and AlgorithmsInterviewInterview QuestionsPython

Optimized Python Implementation for Chen Primes

Geeky CodesJune 8, 2026June 8, 2026

Prime numbers have fascinated mathematicians for centuries. Among the many special categories of primes, Chen Primes occupy an interesting place…

Unique Strings with Odd and Even Swapping Allowed
AlgorithmsData Structures and AlgorithmsInterviewInterview QuestionsPython

Unique Strings with Odd and Even Swapping Allowed

July 4, 2025July 4, 2025

Introduction: In string manipulation, discovering unique strings amidst a sea of possibilities can be both challenging and rewarding. In this…

Applying SOLID Principles and Dependency Injection in Python
InterviewInterview QuestionsPython

Applying SOLID Principles and Dependency Injection in Python

July 4, 2025July 4, 2025

Introduction:In modern software development, adhering to principles and practices that promote maintainability, scalability, and reusability is crucial. Two fundamental concepts…

Data Structures and AlgorithmsHacker Rank SolutionsPython

Beautiful Days at the Movies | Hackerrank Solutions

July 2, 2025July 2, 2025

Lily likes to play games with integers. She has created a new game where she determines the difference between a…

Data ScienceMachine LearningPandasPython

Quintile Analysis: Bringing it all togetherand making decisions

July 2, 2025July 2, 2025

Introduction Quintile analysis is a statistical method used to divide a data set into five equal parts, each representing 20%…

Getting Started With Pandas | Part 1
Data ScienceMachine LearningPandasPython

Getting Started With Pandas | Part 1

July 2, 2025July 2, 2025

Installation or Setup Detailed instructions on getting pandas set up or installed can be found here in the official documentation.…

Data ScienceMachine LearningPandasPython

Appending to DataFrame | Pandas

July 2, 2025

Appending a new row to DataFrame import pandas as pd df = pd.DataFrame(columns = [‘A’, ‘B’, ‘C’]) Appending a row…

What is Exploratory Data Analysis (EDA)?
Data ScienceMachine LearningPython

What is Exploratory Data Analysis (EDA)?

Geeky CodesJuly 2, 2025July 2, 2025

Exploratory Data Analysis (EDA) is an essential step in any data science project. It involves investigating and analyzing datasets to…

Data ScienceMachine LearningPythonUnsupervised Learning

Using clustering for image segmentation

Geeky CodesJuly 2, 2025July 2, 2025

Image segmentation is the task of partitioning an image into multiple segments. In semantic segmentation, all pixels that are part…

AlgorithmsData Structures and AlgorithmsPython

Letter Combinations of a phone number

Geeky CodesAugust 27, 2024February 6, 2025

Given a string containing digits from 2-9 inclusive, return all possible letter combinations that the number could represent. Return the answer in any…

Data Structures and AlgorithmsPython

3 Sum Closest | LeetCode

Geeky CodesAugust 27, 2024February 6, 2025

Given an integer array nums of length n and an integer target, find three integers in nums such that the sum is closest to target. Return the sum of…

Finding the Top K Most Frequent Elements in an Array
Data Structures and AlgorithmsInterviewInterview QuestionsPython

Finding the Top K Most Frequent Elements in an Array

Geeky CodesJune 18, 2024February 6, 2025

Finding the top ( k ) most frequent elements in an array is a common question in coding interviews and…

Data Structures and AlgorithmsInterviewInterview QuestionsPython

Finding the Top K Largest Elements in an Array

Geeky CodesJune 18, 2024February 6, 2025

In many coding interviews and real-world applications, finding the top ( k ) largest elements in an array is a…

Counting Odd and Even Occurrences in an Array
AlgorithmsData Structures and AlgorithmsInterviewInterview QuestionsPython

Counting Odd and Even Occurrences in an Array

Geeky CodesApril 18, 2024February 7, 2025

Introduction: In programming, it’s common to encounter scenarios where you need to count the number of elements occurring an odd…

How to Check if a Number is Prime in Python
AlgorithmsData Structures and AlgorithmsInterviewInterview QuestionsPython

How to Check if a Number is Prime in Python

April 18, 2024February 8, 2025

Introduction:Prime numbers are natural numbers greater than 1 that have no positive divisors other than 1 and themselves. Determining whether…

Deleting Nodes with Greater Values on the Right Side in a Linked List
AlgorithmsData Structures and AlgorithmsInterviewInterview QuestionsPython

Deleting Nodes with Greater Values on the Right Side in a Linked List

April 16, 2024July 4, 2025

Introduction:In programming, efficiently managing linked lists is a crucial skill. Deleting nodes with greater values on the right side is…

Finding Maximum Difference Type in an Array
AlgorithmsData Structures and AlgorithmsInterviewInterview QuestionsPython

Finding Maximum Difference Type in an Array

April 16, 2024July 4, 2025

Introduction:Discovering the maximum difference between elements in a Python array is a crucial programming task, often demanding efficient algorithms for…

Character Frequency Counting in Strings
AlgorithmsData Structures and AlgorithmsInterviewInterview QuestionsPython

Character Frequency Counting in Strings

April 14, 2024July 4, 2025

Introduction: Character frequency counting is a common task in string manipulation, often encountered in various programming scenarios. In this tutorial,…

Posts navigation

Older posts

Total Visitors

  • 49,586 hits
  • Longest Consecutive Sequence in Python: O(n) Hash Set Solution Explained
  • PyTorch CNN Shape Mismatch Error: Fixing “mat1 and mat2 shapes cannot be multiplied
  • Counting Common Members Across Months in SQL
  • How to Join a Parameterized View in SAP HANA (And Fix the “Parameterized View with Unused Parameter” Error)
  • Inverting a Character Frequency Map in Python

Top Posts & Pages

  • Longest Consecutive Sequence in Python: O(n) Hash Set Solution Explained
  • PyTorch CNN Shape Mismatch Error: Fixing "mat1 and mat2 shapes cannot be multiplied
  • Counting Common Members Across Months in SQL
  • How to Join a Parameterized View in SAP HANA (And Fix the "Parameterized View with Unused Parameter" Error)
  • Terms and Conditions
  • Inverting a Character Frequency Map in Python
  • Ace Your Databricks Data Engineer Exam: 10 Essential Practice Questions Explained Part 6
  • Ace Your Databricks Data Engineer Exam: 10 Essential Practice Questions Explained Part 5
  • Ace Your Databricks Data Engineer Exam: 10 Essential Practice Questions Explained Part 4
  • Ace Your Databricks Data Engineer Exam: 10 Essential Practice Questions Explained Part 3
Read more: Character Frequency Counting in Strings

| Extensive News by Ascendoor | Powered by
Geeky Codes
Proudly powered by WordPress Theme: Extensive News.

Loading Comments...