← 1mg questions

Quicksort vs Mergesort, Binary Tree Left View, String Reversal

Filed under 1mg

The question

Explain why quicksort is preferred for arrays and merge sort for linked lists, print the left view of a binary tree, reverse each word in a given string, calculate distance between two points, and find the sum of elements in a matrix.

No write-up yet. Related questions below have one.

Related 1mg questions

Collected from public candidate posts and coding forums. Updated Nov 2026.