Zig-Zag Triangle – String Pattern
Print a zig-zag triangular pattern using characters from a string with alternating forward and reverse order
Choose your challenge. Start easy and work your way up.
Print a zig-zag triangular pattern using characters from a string with alternating forward and reverse order
Group customers by purchase amount in descending order and sort names within each group
Print characters from a matrix alternating between first N characters from odd rows and last N characters from even rows.
Simulate the movement of robots moving in alternating directions across rows and output their positions after T seconds
Find the middle digit(s) of an integer - return the middle digit if odd length, or the two middle digits if even length
Count the number of triplets in an array where three integers appear in strictly decreasing order.
Find the nearest integer to N where the concatenation of its first and last digits is a factor of the integer itself.
Find the lexicographic rank of a string among all unique substrings of itself
Print a vertical zigzag pattern of numbers in a matrix format
Find the basket under a tree that receives the most different colors of flowers from its tree and adjacent trees.
Print odd numbers from A to B interlaced with even numbers from B to A
Find multiples of N starting from N*1 and stop when a multiple is divisible by X