Pinely Round 2codeforces A. Channel Petya is an administrator of a channel in one of the messengers. A total of n people are subscribed to his channel, and Petya is not considered a subscriber. Petya has published a new post on the channel. At the moment of...Aug 31, 2023·3 min read
Integer To RomanRoman 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 D 500 M 1000 For example, 2 is written ...Jun 5, 2022·2 min read
3 Sum ClosestGiven an integer array nums of length n and an integer target, find three integers in nums such that the sum is closest to the target. Return the sum of the three integers. You may assume that each input would have exactly one solution. Example 1: In...Jun 5, 2022·1 min read
Median Of Two Sorted ArraysGiven two sorted arrays nums1 and nums2 of size m and n respectively, return the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)). Example 1: Input: nums1 = [1,3], nums2 = [2] Output: 2.00000 Explanation: merged...Jun 5, 2022·1 min read
Merge Two Sorted ListGiven two sorted integer arrays A and B, merge B into A as one sorted array. Note: You have to modify the array A to contain the merge of A and B. Do not output anything in your code. TIP: C users, please malloc the result into a new array and return...Jun 1, 2022·2 min read