Showing 3 of 33 questions
Given a list of non-negative integers, arrange them such that they form the largest possible number. Return the largest number as a string.
#1. Largest Number
You're given the head of a linked list. Group the nodes into groups of increasing sizes (1, 2, 3...). Reverse the nodes within any even-length group and return the modified list.
#2. Reverse Nodes in Even Length Groups
You're given a binary tree. Reverse the order of nodes at each odd level of the tree, starting the level count from the root (level 0).
#3. Reverse Odd Levels of Binary Tree
Page 1 of 1 · 33 total