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: Algorithms

Explore the fascinating world of algorithms! From sorting and searching to advanced AI techniques, discover how algorithms solve problems, power technology, and transform industries. Perfect for beginners and pros alike.

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…

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…

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…

Sorting Unique Integers Without Built-in Functions in Python
AlgorithmsData Structures and AlgorithmsInterviewInterview Questions

Sorting Unique Integers Without Built-in Functions in Python

April 14, 2024July 4, 2025

Introduction:Sorting a list of unique integers is a common task in programming, often requiring efficient algorithms to achieve the desired…

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,…

String Operations: Efficiently Reverse Substrings
AlgorithmsData Structures and AlgorithmsInterviewInterview QuestionsPython

String Operations: Efficiently Reverse Substrings

April 14, 2024July 4, 2025

Introduction: String manipulation is a fundamental aspect of programming, and understanding efficient techniques for performing string operations is essential. In…

Square Root Integral in Python
AlgorithmsData Structures and AlgorithmsInterviewInterview QuestionsPython

Square Root Integral in Python

April 14, 2024July 4, 2025

Given a number N, find its square root. You need to find and print only the integral part of square…

Word Patterns | Interview Question at Mastercard
AlgorithmsData Structures and AlgorithmsInterviewInterview QuestionsJAVAPython

Word Patterns | Interview Question at Mastercard

April 14, 2024July 4, 2025

Introduction: In the world of string manipulation, unraveling patterns and matching sequences play a pivotal role in various applications. In…

Level Order Traversal Technique for Binary Trees
AlgorithmsInterview QuestionsPython

Level Order Traversal Technique for Binary Trees

April 13, 2024July 4, 2025

Introduction: In binary trees, exploring their structure and nodes in a systematic manner is crucial for various operations and analyses.…

Minimum Steps to Reduce a Number to 1 Using Dynamic Programming
AlgorithmsData Structures and AlgorithmsInterview QuestionsPython

Minimum Steps to Reduce a Number to 1 Using Dynamic Programming

April 13, 2024July 3, 2025

Problem Statement: Given a positive integer ‘N’, our objective is to compute and return the minimum number of steps needed…

Maximum Subarray Sum Challenge with Kadane’s Algorithm
AlgorithmsInterviewInterview QuestionsPython

Maximum Subarray Sum Challenge with Kadane’s Algorithm

April 13, 2024July 3, 2025

Introduction: In the realm of algorithmic problem-solving, the quest for the maximum sum of any contiguous subarray within a given…

Finding the Longest Palindromic Subsequence
AlgorithmsInterview QuestionsPython

Finding the Longest Palindromic Subsequence

Geeky CodesApril 13, 2024July 3, 2025

Introduction: Dynamic Programming (DP) is a powerful algorithmic technique used to solve a variety of optimization problems. One classic problem…

Check If The String Is A Palindrome
AlgorithmsInterviewInterview QuestionsPython

Check If The String Is A Palindrome

April 13, 2024July 3, 2025

You are given a string ‘S’. Your task is to check whether the string is palindrome or not. For checking…

AlgorithmsData Structures and AlgorithmsHacker Rank SolutionsPython

Designer PDF Viewer | Hackerrank

February 21, 2024July 1, 2025

When a contiguous block of text is selected in a PDF viewer, the selection is highlighted with a blue rectangle.…

AlgorithmsGFG Problem of the DayPython

Game with String | Problem of the day

February 19, 2024July 1, 2025

Given a string s of lowercase alphabets and a number k, the task is to print the minimum value of the string after…

Hackerrank | Longest Subarray with Absolute Difference Constraint
AlgorithmsData Structures and AlgorithmsHacker Rank SolutionsPython

Hackerrank | Longest Subarray with Absolute Difference Constraint

January 18, 2024July 1, 2025

Problem Overview Given an array of integers, our task is to find the longest subarray such that the absolute difference…

Hackerrank | Birthday Candles Problem
AlgorithmsData Structures and AlgorithmsHacker Rank SolutionsInterviewInterview QuestionsPython

Hackerrank | Birthday Candles Problem

Geeky CodesDecember 30, 2023April 25, 2025

You are in charge of the cake for a child’s birthday. You have decided the cake will have one candle…

Posts navigation

Older posts

Total Visitors

  • 49,545 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

  • Main Approaches for Dimensionality Reduction
  • Web Development Project Guide for Freshers
Read more: Hackerrank | Birthday Candles Problem

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

Loading Comments...