Coding Challenges
Explore our comprehensive collection of coding challenges across various domains. Practice, learn, and master different aspects of programming.
Two Sum
Given an array of integers, return indices of the two numbers such that they add up to a specific target.
Merge Intervals
Given a collection of intervals, merge all overlapping intervals.
Longest Substring Without Repeating Characters
Find the length of the longest substring without repeating characters.
Median of Two Sorted Arrays
Find the median of the two sorted arrays.
LRU Cache
Design and implement a data structure for Least Recently Used (LRU) cache.
Implement a Stack
Implement a stack data structure with push, pop, top, and getMin operations.
Binary Tree Level Order Traversal
Given a binary tree, return the level order traversal of its nodes' values.
Implement a Trie
Implement a trie with insert, search, and startsWith methods.
Serialize and Deserialize Binary Tree
Design an algorithm to serialize and deserialize a binary tree.
Implement a Graph
Implement a graph data structure with basic operations.
Linear Regression from Scratch
Implement linear regression algorithm without using ML libraries.
K-Means Clustering
Implement the K-means clustering algorithm from scratch.
Decision Tree Implementation
Build a decision tree classifier from scratch.
Neural Network from Scratch
Implement a simple neural network with backpropagation.
PCA Implementation
Implement Principal Component Analysis from scratch.
Naive Bayes Classifier
Implement a Naive Bayes classifier for text classification.
Content-Based Recommendation System
Design a content-based recommendation system for a streaming platform.
Real-time Fraud Detection System
Design a real-time fraud detection system for financial transactions.
Search Ranking System
Design a search ranking system for a large-scale e-commerce platform.
Ad Click Prediction System
Design a system to predict ad clicks in real-time for an advertising platform.
Large-Scale Image Recognition Service
Design a scalable image recognition service that can handle millions of requests per day.