Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M. Symbol Value I 1 V 5 X 10 L 50 C 100…
Given a complete binary tree, count the number of nodes. Note: Definition of a complete binary tree from Wikipedia:In a complete binary tree…
The demons had captured the princess (P) and imprisoned her in the bottom-right corner of a dungeon. The dungeon consists…
There are n cities connected by m flights. Each flight starts from city u and arrives at v with a price w. Now…
There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arrays. The overall…
You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contain…
This website uses cookies.