Equal Beauty CodeChef SnackDown 2021 Round 1A Question The beauty of an (non-empty) array of integers is defined as the difference between its largest and smallest element. For example, the beauty of the array [2,3,4,4,6] is 6−2=4. An array A is said to be good if it is possible to partition the elements of A into two non-empty arrays B1 and B2 such that B1 and B2 have the same beauty. Each element of array A should be in exactly one array: either in B1 or in B2. For example, the array [6,2,4,4,4] is good because its elements can be partitioned into two arrays B1=[6,4,4] and B2=[2,4], where both B1 and B2 have the same beauty (6−4=4−2=2). You are given an array A of length N. In one move you can: Select an index i (1≤i≤N) and either increase Ai by 1 or decrease Ai by 1. Find the minimum number of moves required to make the array A good. Input Format The first line of input contains a single integer T, denoting the number of test cases. The description of T test cases follow. Each ...
Top 5 Technologies to Learn in 2021
Technologies are advancing each second, things which looked impossible few years ago is now becoming reality. To match the advancing world we should also gain speed and learn new technologies that can make our future better. Here are the top 5 technologies to learn in 2021:
1) Cybersecurity
This is the most demanded technologies to learn in 2021. With the increase in digitalization more and more companies are coming online and more of their customers are also coming online because in this pandemic online mode that is the digital revolution began. In order to make the data of customers secure companies are hiring employers who have this skill. Thus the job positions in cybersecurity will go on increasing. Thus learning this technology is one of the best for the betterment of future.
Cybersecurity |
2) Artificial Intelligence (AI) and Machine Learning
Artificial Intelligence also know as AI is currently becoming a necessity to humanity since we prefer to have a luxurious life so we are automating all systems. Machine Learning is a subset of AI. This basically means every work will be done much more faster and the machine itself can predict things based on previous data and information. This industry will keep growing as every thing will get automated in the future so learning this technology is a need.
Artificial Intelligence |
3) Blockchain
Blockchain is the most valuable technologies to learn since people are eager to know the benefits of blockchain. This is the backbone of cryptocurrencies since the whole processing of transaction and mining of cryptocurrencies is based on this technology. Since cryptocurrencies is on boom therefore the blockchain technology has become a must to learn technology and this is one of the way of secure ways available in 2021.
Blockchain |
4) Big Data Analytics
Big Data Analytics is one of the important skill recruiters search for. Big Data is just the process of extracting important information from big data sets to help understand the demands of consumers and hidden patterns. Learning this technology is important but this is time consuming thus people often neglect this technology but due to the lack of skilled people in this technology this becomes a high demanded.
Big Data Analytics |
5) 5G Technology
5G Technology is the next generation of cellular network and services. This technology is the future and will be in high demand from the end of 2021. This technology is almost 30 times faster than 4G technology. This opens a vivid range of opportunities for the telecom industry. Many companies are heavily investing in this technology as this is the future.
5G Technology |
These are the technologies which you need to learn in 2021 to succeed in your life and progress in your career. Hope you found something helpful after reading this blog.
Comments
Post a Comment