Programming Puzzle Solutions: JS, Java, Python, Go
This is the index for the four programming puzzle problems on this site. Each one has language-specific solutions in JavaScript, Java, Python, or Go — …
Read Article →14 articles about coding-challenges development, tools, and best practices
This is the index for the four programming puzzle problems on this site. Each one has language-specific solutions in JavaScript, Java, Python, or Go — …
Read Article →Find the longest substring of a string where characters appear in non-decreasing alphabetical order. If two substrings share the maximum …
Read Article →Find the longest substring of a string where characters are in non-decreasing alphabetical order. If multiple substrings share the …
Read Article →Given a lowercase string of letters (no spaces, no digits), return the length of the longest substring made only of vowels (aeiou). …
Given a lowercase string of letters (no spaces, no digits), return the length of the longest substring that contains only vowels (aeiou …
Given a lowercase word, return every permutation of its letters in alphabetical order. Do not use built-in permutation libraries. …
Read Article →Given a word (a string of lowercase letters), return all its permutations in alphabetical order. Do not use built-in permutation …
Read Article →Given a slice of positive integers, return the value with the most digits. If two or more values share the highest digit count, return …
Read Article →Given an array of positive integers, return the number with the most digits. If two or more numbers share the highest digit count, …
Read Article →Given an array of positive integers, return the number with the most digits. If two numbers have the same number of digits, return the …
Read Article →Find the longest substring in alphabetical order. If there are multiple substrings of the same maximum length, return the one that …
Read Article →Find the number with the most digits in a list of positive integers. If two numbers have the same number of digits, return the first one …
Read Article →Python’s itertools.permutations handles this in one line:
from itertools import permutations
perms = sorted([ …The vowel substrings in the word codewarriors are o, e, a, io. The longest of these has a length of 2.
Given a lowercase string that has …
Read Article →