TG Telegram Group Link
Channel: Programming Challenges
Back to Bottom
HUFFMAN ENCODING
+========+
Time: 1 hour - 2 hours
Difficulty: Hard
Languages: Any
+========+
Given a string of characters, implement a function that performs Huffman encoding on the string, and returns the encoded string and a dictionary of the binary codes for each character.
+========+
Please answer to this message with your solution đŸ™‚
LIS
+========+
Time: 30 minutes - 1 hour
Difficulty: Medium
Languages: Any
+========+
Given a list of integers, implement a function that finds the length of the longest increasing subsequence of the list, using dynamic programming approach.
+========+
Please answer to this message with your solution đŸ™‚
IMAGE THRESHOLDING
+========+
Time: 30 minutes - 1 hour
Difficulty: Medium
Languages: Any
+========+
Given an image represented by a matrix, implement a function that applies a thresholding effect to the image, converting it to a binary image.
+========+
Please answer to this message with your solution đŸ™‚
BFS
+========+
Time: 30 minutes - 1 hour
Difficulty: Easy
Languages: Any
+========+
Given a graph represented by an adjacency list, implement a function that performs a breadth-first search of the graph, and returns a list of the visited nodes.
+========+
Please answer to this message with your solution đŸ™‚
KMP
+========+
Time: 1 hour - 2 hours
Difficulty: Hard
Languages: Any
+========+
Given a text string and a pattern string, implement a function that performs the Knuth-Morris-Pratt algorithm to find all occurrences of the pattern in the text.
+========+
Please answer to this message with your solution đŸ™‚
LCS
+========+
Time: 30 minutes - 1 hour
Difficulty: Medium
Languages: Any
+========+
Given two strings, implement a function that finds the length of the longest common subsequence of the two strings, using dynamic programming approach.
+========+
Please answer to this message with your solution đŸ™‚
Coding advice
+==========+
When you google "coding advice", you always get the same answers - they are very boring.

Join https://hottg.com/codingadvice for more unusual and even controversial advice! And also for a fun time! đŸ˜‰
Programming Challenges pinned «Coding advice +==========+ When you google "coding advice", you always get the same answers - they are very boring. Join https://hottg.com/codingadvice for more unusual and even controversial advice! And also for a fun time! đŸ˜‰Â»
IMAGE EDGE DETECTION
+========+
Time: 30 minutes - 1 hour
Difficulty: Medium
Languages: Any
+========+
Given an image represented by a matrix, implement a function that applies an edge detection effect to the image using a convolution matrix.
+========+
Please answer to this message with your solution đŸ™‚
UNION FIND
+========+
Time: 30 minutes - 1 hour
Difficulty: Easy
Languages: Any
+========+
Given a set of elements, implement a function that performs the union-find algorithm to determine if two elements are in the same set or not.
+========+
Please answer to this message with your solution đŸ™‚
RASTERIZATION
+========+
Time: 1 hour - 2 hours
Difficulty: Hard
Languages: Any
+========+
Given the vertices of a polygon and the resolution of a raster image, implement a function that rasterizes the polygon and returns a matrix representing the image.
+========+
Please answer to this message with your solution đŸ™‚
MINIMUM COIN CHANGE
+========+
Time: 30 minutes - 1 hour
Difficulty: Medium
Languages: Any
+========+
Given a target value and a list of coin values, implement a function that finds the minimum number of coins needed to make the target value, using dynamic programming approach.
+========+
Please answer to this message with your solution đŸ™‚
IMAGE MORPHOLOGY
+========+
Time: 30 minutes - 1 hour
Difficulty: Medium
Languages: Any
+========+
Given an image represented by a matrix, implement a function that applies a morphological operation to the image using a structuring element.
+========+
Please answer to this message with your solution đŸ™‚
HEAP SORT
+========+
Time: 30 minutes - 1 hour
Difficulty: Easy
Languages: Any
+========+
Given a list of integers, implement a function that sorts the list using the heap sort algorithm.
+========+
Please answer to this message with your solution đŸ™‚
DYNAMIC PROGRAMMING MULTI-OBJECTIVE OPTIMIZATION
+========+
Time: 2 hours - 3 hours
Difficulty: Hard
Languages: Any
+========+
Given a set of items, each with a value and a weight, and a knapsack with a maximum weight capacity and a maximum value capacity, implement a function that finds the maximum value and weight that can be placed in the knapsack using dynamic programming approach.
+========+
Please answer to this message with your solution đŸ™‚
SHORTEST PATH BETWEEN TWO NODES
+========+
Time: 30 minutes - 1 hour
Difficulty: Medium
Languages: Any
+========+
Given a graph represented by an adjacency matrix, implement a function that finds the shortest path between two given nodes using Dijkstra's algorithm.
+========+
Please answer to this message with your solution đŸ™‚
CONVEX HULL
+========+
Time: 1 hour - 2 hours
Difficulty: Hard
Languages: Any
+========+
Given a set of points in two-dimensional space, implement a function that finds the convex hull of the set using the Jarvis march algorithm.
+========+
Please answer to this message with your solution đŸ™‚
BINARY TREE SERIALIZATION
+========+
Time: 30 minutes - 1 hour
Difficulty: Medium
Languages: Any
+========+
Given the root of a binary tree, implement a function that serializes the tree to a string and a function that deserializes the string back to the original tree.
+========+
Please answer to this message with your solution đŸ™‚
MINIMUM CUT
+========+
Time: 2 hours - 3 hours
Difficulty: Hard
Languages: Any
+========+
Given a graph represented by an adjacency matrix, implement a function that finds the minimum cut of the graph using the Karger's algorithm
+========+
Please answer to this message with your solution đŸ™‚
TOPOLOGICAL SORT
+========+
Time: 30 minutes - 1 hour
Difficulty: Medium
Languages: Any
+========+
Given a directed acyclic graph represented by an adjacency list, implement a function that performs a topological sort of the graph and returns a list of the visited nodes
+========+
Please answer to this message with your solution đŸ™‚
HTML Embed Code:
2025/06/29 19:23:46
Back to Top