数组 1.Index of maximum element in array. 2.Find longest string in array of strings. 3.Find shortest string in array of strings. 4.Array reverse. 5.Intersection of two arrays. 7.Find duplicates. 8.Array with N unique/not unique random objects.
字符串 1.Palindrome or not. 2.String reverse. 3.Words count. 4.Permutations of string. 5.Occurrences of each character (a - z). 6.Count "needles" in a "haystack". 7.Random string. 8.Concatenation of two strings. 9.Find 1st occurrence of "needle" in a "haystack". 10.Last occurrence of "needle" in a "haystack".
数列 Sieve of Eratosthenes. Great common divisor (G C D). Least common multiple (LCM). Factorial. Fibonacci numbers. Sum of digits. Binary to decimal conversion. Decimal to binary conversion. Fast exponentiation. Number reverse. Even/odd check. Leap year check. Armstrong number check. Prime number check.
数据结构 Stack (LIFO). Queue (FIFO). Deque. Linked list. Graph DFS (depth-first search); BFS (breadth-first search). Binary search tree (BST).