programming

Maximum 69 Number LeetCode Solution in C++

Problem :  You are given a positive integer   num   consisting only of digits   6   and   9 . Return  the maximum number you can get by changing  at most  one digit ( 6  becomes  9 , and  9  becomes  6 ) . Example 1: Input: num …

Apply Operations to an Array Leetcode Solution in C++

Problem You are given a   0-indexed   array   nums   of size   n   consisting of   non-negative   integers. You need to apply   n - 1   operations to this array where, in the   i th   operation ( 0-indexed ), you will apply the…

Programming Languages(PROGLANG) CodeChef Solution in C++

Problem  Chef is a software developer, so he has to switch between different languages sometimes. Each programming language has some features, which are represented by integers here. Currently, Chef has to use a language with two…

Load More
That is All