Programming languages are used for many purposes such as making websites, developing mobile applications, etc. Graphic designing is one of the things that we can do by using the programming language. While graphic designing, we can face a problem where we have to project a 3-D object on the 2-D plane and due to which one dimension will be reduced or one face will be hidden. In this problem, we have to detect that hidden face. Back-Face detection is also known as the name Plane Equation method, and it is a method for the object space methods in which objects ... Read More
Co-prime numbers are numbers that do not have any common divisor other than 1. We will be given two numbers n and m. We have to find the largest number in the range of 2 to n (both inclusive) which is co-prime with all the elements in the range of 2 to m (both inclusive). If none of the elements in the given range is co-prime with all the elements of the second range then we have to return or print -1. We will implement the approach, and code, and will discuss the time and space complexity of the program. ... Read More
P smooth numbers are the numbers that have the maximum prime number that can divide them is less than or equal to the given number P. Prime numbers are the numbers that are divisible by only 1 and that number. 1 is by default considered as the P - smooth number for any given value of P. In this problem, we will be given a value P and the range and we have to return the number of elements that are present in that range and are P-smooth. Input Given the value of P is 7 and the range ... Read More
In computer systems, memory is a hardware component of the system that stores data and information in the computer. The computer memory can be classified into two main types namely – primary memory and secondary memory. The primary memory is further divided into two main types – RAM and ROM. Read through this article to find out more about RAM and ROM and how they are different from each other. Let's start with some basics of RAM and ROM. What is RAM? RAM stands for Random Access Memory. RAM is a type of primary memory of a computer system. ... Read More
To show the schema, we can use the DESC command. This gives the description about the table structure. The following is the syntax. DESCRIBE yourDatabasename.yourTableName; Let us implement the above syntax. mysql> DESCRIBE business.student; The following is the output. +-------+--------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +-------+--------------+------+-----+---------+-------+ | id | int(11) | YES | MUL | NULL | | | Name | varchar(100) | YES | MUL | NULL | | +-------+--------------+------+-----+---------+-------+ 2 rows in set (0.05 ... Read More
A link is a connection from one Web page to another web page. We can add page links to a web page. HTML links are hyperlinks. The tag defines a hyperlink and is used to link from one page to another. The href attribute is used with the tag, which indicates the link's destination. To create page links in an HTML page, we need to use the href attribute of the and tag. Make sure that the tag is placed with in the … tags. The link text is visible. Clicking on the link text will ... Read More
The element is used to define list items within an ordered list () or an unordered list (). The element stands for "list item". Bullets are often used only for unordered lists. In HTML, unordered lists are created using the element and each list item is defined using the elements. Syntax ul { list-style-type: disc; } Items… The list-style-type property allows us to specify the type of marker, such as bullets, squares, circles, numbers, or letters, that will be displayed with each element. The default bullet ... Read More
The revolutionary impact of CSS3 on web design cannot be overstated. This modern technology has not only enriched the visual appeal of web pages but also enhanced user engagement. Among the myriad of features that CSS3 offers, the creation of distinctive CSS3 properties for each corner of a web element stands out as a significant breakthrough. To create a CSS property for a corner, we will use 5 different methods using − Border-radius property Individual corner properties Clip path property Mask image property Approach 1 - Using Border-radius Property By utilizing the border-radius property in CSS, one can ... Read More
Data communication is sharing information between devices over a network. Models and protocols enable it. Two common models are OSI and TCP/IP. We will explain them and the hybrid model, comparing their features, advantages and disadvantages. The OSI Model The OSI model stands for Open Systems Interconnection model. It was developed by the International Organization for Standardization (ISO) in 1984 as a reference model for network communication. The OSI model defines seven layers of network functions, from the physical layer that deals with the transmission medium to the application layer that interacts with the user. Each layer performs ... Read More
It is crucial to remain updated with the most recent knowledge in the fast-paced world of today. Making customizable notifications in JavaScript is one approach to accomplish this. Users may get vital messages catered to their own requirements with customizable alerts. Syntax function Alert(message, alert type) Message parameter gets string as input to be displayed on the alert box. Alert type − the type of message such as error, emergency, etc The Alert type parameter specifies the type of message, such as error, emergency, prompt, etc, that is displayed. Example 1 We will generate an alert message ... Read More
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP