title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
Python Program to find largest element in an array | 04 Jan, 2018
Given an array, find the largest element in it.
Input : arr[] = {10, 20, 4}
Output : 20
Input : arr[] = {20, 10, 20, 4, 100}
Output : 100
# Python3 program to find maximum# in arr[] of size n # python function to find maximum# in arr[] of size ndef largest(arr,n): # Initialize maximum element m... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n04 Jan, 2018"
},
{
"code": null,
"e": 100,
"s": 52,
"text": "Given an array, find the largest element in it."
},
{
"code": null,
"e": 192,
"s": 100,
"text": "Input : arr[] = {10, 20, 4}\nOutput : 20\n\nInput : arr[]... |
Java class dependency analyzer in Java 8 with Examples - GeeksforGeeks | 29 Jan, 2020
Java class dependency analyzer: jdeps is a new command-line tool introduced in JDK 8 to understand the static dependencies and libraries of application i.e. jdeps command shows the package-level or class-level dependencies of Java class files. The input for jdeps can be a .class file pathname, a JAR file o... | [
{
"code": null,
"e": 23557,
"s": 23529,
"text": "\n29 Jan, 2020"
},
{
"code": null,
"e": 24172,
"s": 23557,
"text": "Java class dependency analyzer: jdeps is a new command-line tool introduced in JDK 8 to understand the static dependencies and libraries of application i.e. jdeps ... |
Count natural numbers whose factorials are divisible by x but not y - GeeksforGeeks | 26 Mar, 2021
Given two numbers x and y (x <= y), find out the total number of natural numbers, say i, for which i! is divisible by x but not y. Examples :
Input : x = 2, y = 5
Output : 3
There are three numbers, 2, 3 and 4
whose factorials are divisible by x
but not y.
Input: x = 15, y = 25
Output: 5
5! = 120 % 15 =... | [
{
"code": null,
"e": 25179,
"s": 25151,
"text": "\n26 Mar, 2021"
},
{
"code": null,
"e": 25323,
"s": 25179,
"text": "Given two numbers x and y (x <= y), find out the total number of natural numbers, say i, for which i! is divisible by x but not y. Examples : "
},
{
"code... |
Squares in N*N Chessboard | Practice | GeeksforGeeks | Find total number of Squares in a N*N cheesboard.
Example 1:
Input:
N = 1
Output:
1
Explanation:
A 1*1 chessboard has only 1 square.
Example 2:
Input:
N = 2
Output:
5
Explanation:
A 2*2 chessboard has 5 squares.
4 1*1 squares and a 2*2 square.
Your Task:
You don't need to read input or print anything. Your task is... | [
{
"code": null,
"e": 288,
"s": 238,
"text": "Find total number of Squares in a N*N cheesboard."
},
{
"code": null,
"e": 301,
"s": 290,
"text": "Example 1:"
},
{
"code": null,
"e": 373,
"s": 301,
"text": "Input:\nN = 1\nOutput:\n1\nExplanation:\nA 1*1 chessboar... |
Create Chatbot using Rasa Part-1. Rasa is an open source machine learning... | by Bikash Sundaray | Towards Data Science | Rasa is an open source machine learning framework for building AI assistants and chatbots. Mostly you don’t need any programming language experience to work in Rasa. Although there is something called “Rasa Action Server” where you need to write code in Python, that mainly used to trigger External actions like Calling ... | [
{
"code": null,
"e": 520,
"s": 172,
"text": "Rasa is an open source machine learning framework for building AI assistants and chatbots. Mostly you don’t need any programming language experience to work in Rasa. Although there is something called “Rasa Action Server” where you need to write code in P... |
Bring your Jupyter Notebook to life with interactive widgets | by Semi Koen | Towards Data Science | Traditionally, every time you need to modify the output of your notebook cells, you need to change the code and rerun the affected cells. This can be cumbersome, inefficient and error prone and in the case of a non-technical user it may even be impracticable. This is where the ipywidgets come into play: they can be emb... | [
{
"code": null,
"e": 794,
"s": 171,
"text": "Traditionally, every time you need to modify the output of your notebook cells, you need to change the code and rerun the affected cells. This can be cumbersome, inefficient and error prone and in the case of a non-technical user it may even be impractica... |
C++ Program to Implement Gauss Seidel Method | Gauss Seidel method is used to solve linear system of equations in iterative method. This is a C++ Program to Implement Gauss Seidel Method.
Begin
Take the dimensions of the matrix p and its elements as input.
Take the initials values of x and no of iteration q as input.
While q>0
Make a for loop i = 0 t... | [
{
"code": null,
"e": 1203,
"s": 1062,
"text": "Gauss Seidel method is used to solve linear system of equations in iterative method. This is a C++ Program to Implement Gauss Seidel Method."
},
{
"code": null,
"e": 1776,
"s": 1203,
"text": "Begin\n Take the dimensions of the matr... |
Phonia - Advanced Toolkits To Scan Phone Numbers - GeeksforGeeks | 04 Jan, 2022
Phonia tool is an automated tool used in the process of OSINT for getting the information about the target with the help of a phone number. Phonia tools developed in the Python Language and its available on the GitHub platform. It’s free and open-source to use. This tool aims to get accurate results with g... | [
{
"code": null,
"e": 24326,
"s": 24298,
"text": "\n04 Jan, 2022"
},
{
"code": null,
"e": 24756,
"s": 24326,
"text": "Phonia tool is an automated tool used in the process of OSINT for getting the information about the target with the help of a phone number. Phonia tools developed ... |
How do I insert a special character such as ' (single quote) into MySQL? | To insert a special character such as “ ‘ “ (single quote) into MySQL, you need to use \’ escape character. The syntax is as follows −
insert into yourTableName(yourColumnName) values(' yourValue\’s ');
To understand the above syntax, let us create two tables. The query to create first table is as follows −
mysql> crea... | [
{
"code": null,
"e": 1322,
"s": 1187,
"text": "To insert a special character such as “ ‘ “ (single quote) into MySQL, you need to use \\’ escape character. The syntax is as follows −"
},
{
"code": null,
"e": 1390,
"s": 1322,
"text": "insert into yourTableName(yourColumnName) valu... |
Implementation of Dynamic Array in Python | 18 Apr, 2020
What is a dynamic array?
A dynamic array is similar to an array, but with the difference that its size can be dynamically modified at runtime. Don’t need to specify how much large an array beforehand. The elements of an array occupy a contiguous block of memory, and once created, its size cannot be changed... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n18 Apr, 2020"
},
{
"code": null,
"e": 78,
"s": 53,
"text": "What is a dynamic array?"
},
{
"code": null,
"e": 547,
"s": 78,
"text": "A dynamic array is similar to an array, but with the difference that its size can ... |
Count numbers upto N which are both perfect square and perfect cube | 24 Jun, 2022
Given a number N. The task is to count total numbers under N which are both perfect square and cube of some integers.Examples:
Input: N = 100
Output: 2
They are 1 and 64.
Input: N = 100000
Output: 6
Approach: For a given positive number N to be a perfect square, it must satisfy P2 = N Similarly, Q3 = N f... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n24 Jun, 2022"
},
{
"code": null,
"e": 182,
"s": 54,
"text": "Given a number N. The task is to count total numbers under N which are both perfect square and cube of some integers.Examples: "
},
{
"code": null,
"e": 255,
... |
Find maximum (or minimum) sum of a subarray of size k | 08 Jul, 2022
Given an array of integers and a number k, find the maximum sum of a subarray of size k.
Examples:
Input : arr[] = {100, 200, 300, 400}
k = 2
Output : 700
Input : arr[] = {1, 4, 2, 10, 23, 3, 1, 0, 20}
k = 4
Output : 39
We get maximum sum by adding subarray {4, 2, 10, 23}
of size 4.... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n08 Jul, 2022"
},
{
"code": null,
"e": 142,
"s": 52,
"text": "Given an array of integers and a number k, find the maximum sum of a subarray of size k. "
},
{
"code": null,
"e": 153,
"s": 142,
"text": "Examples: "
}... |
DATENAME() Function in SQL Server | 18 Jan, 2021
DATENAME() function :
This function in SQL Server is used to find a given part of the specified date. Moreover, it returns the output value as a string.
Features :
This function is used to find a given part of the specified date.
This function comes under Date Functions.
This function accepts two parameter... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n18 Jan, 2021"
},
{
"code": null,
"e": 50,
"s": 28,
"text": "DATENAME() function :"
},
{
"code": null,
"e": 181,
"s": 50,
"text": "This function in SQL Server is used to find a given part of the specified date. Moreov... |
PHP | Change strings in an array to uppercase | 06 Mar, 2018
You are given an array of strings. You have to change all of the strings present in the given array to uppercase no matter in which case they are currently. Print the resultant array.
Examples:
Input : arr[] = ("geeks", "For", "GEEks")
Output : Array ([0]=>GEEKS [1]=>FOR [2]=>GEEKS)
Input : arr[] = ("gee... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n06 Mar, 2018"
},
{
"code": null,
"e": 212,
"s": 28,
"text": "You are given an array of strings. You have to change all of the strings present in the given array to uppercase no matter in which case they are currently. Print the resultan... |
How to iterate LinkedHashMap in Java? | 19 Jan, 2021
LinkedHashMap class extends HashMap and maintains a linked list of the entries in the map, in the order in which they were inserted. This allows insertion-order iteration over the map. That is, when iterating a LinkedHashMap, the elements will be returned in the order in which they were inserted.
There are... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n19 Jan, 2021"
},
{
"code": null,
"e": 326,
"s": 28,
"text": "LinkedHashMap class extends HashMap and maintains a linked list of the entries in the map, in the order in which they were inserted. This allows insertion-order iteration over... |
Plotting graph For IRIS Dataset Using Seaborn And Matplotlib | 04 Mar, 2021
Matplotlib.pyplot library is most commonly used in Python in the field of machine learning. It helps in plotting the graph of large dataset. Not only this also helps in classifying different dataset. It can plot graph both in 2d and 3d format. It has a feature of legend, label, grid, graph shape, grid and ... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n04 Mar, 2021"
},
{
"code": null,
"e": 431,
"s": 53,
"text": "Matplotlib.pyplot library is most commonly used in Python in the field of machine learning. It helps in plotting the graph of large dataset. Not only this also helps in class... |
dplyr Package in R Programming | 29 Nov, 2021
The dplyr package in R Programming Language is a structure of data manipulation that provides a uniform set of verbs, helping to resolve the most frequent data manipulation hurdles.
By limiting the choices the focus can now be more on data manipulation difficulties.
There are uncomplicated “verbs”, functio... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n29 Nov, 2021"
},
{
"code": null,
"e": 210,
"s": 28,
"text": "The dplyr package in R Programming Language is a structure of data manipulation that provides a uniform set of verbs, helping to resolve the most frequent data manipulation hu... |
GATE | GATE-CS-2005 | Question 73 | 28 Jun, 2021
In a packet switching network, packets are routed from source to destination along a single path having two intermediate nodes. If the message size is 24 bytes and each packet contains a header of 3 bytes, then the optimum packet size is:(A) 4(B) 6(C) 7(D) 9Answer: (D)Explanation: Dividing a message into p... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n28 Jun, 2021"
},
{
"code": null,
"e": 454,
"s": 52,
"text": "In a packet switching network, packets are routed from source to destination along a single path having two intermediate nodes. If the message size is 24 bytes and each packe... |
Scala Set contains() method with example | 18 Oct, 2019
The contains() method is utilized to check if an element is present in the set of not.
Method Definition: def contains(elem: A): Boolean
Return Type: It returns true if the element is present in the set else it returns false.
Example #1:
// Scala program of contains() // method // Creating object object ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n18 Oct, 2019"
},
{
"code": null,
"e": 115,
"s": 28,
"text": "The contains() method is utilized to check if an element is present in the set of not."
},
{
"code": null,
"e": 165,
"s": 115,
"text": "Method Definition: ... |
Progressbar widget in Tkinter | Python | 01 May, 2019
The purpose of this widget is to reassure the user that something is happening. It can operate in one of two modes –In determinate mode, the widget shows an indicator that moves from beginning to end under program control.In indeterminate mode, the widget is animated so the user will believe that something... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n01 May, 2019"
},
{
"code": null,
"e": 460,
"s": 53,
"text": "The purpose of this widget is to reassure the user that something is happening. It can operate in one of two modes –In determinate mode, the widget shows an indicator that mo... |
File list() method in Java with Examples | 30 Jan, 2019
The list() method is a part of File class.The function returns an array of string denoting the files in a given abstract pathname if the path name is a directory else returns null. The function is an overloaded function. One of the function does not have any parameter and the other function takes FilenameF... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n30 Jan, 2019"
},
{
"code": null,
"e": 385,
"s": 52,
"text": "The list() method is a part of File class.The function returns an array of string denoting the files in a given abstract pathname if the path name is a directory else returns... |
Java | Class and Object | Question 4 | 28 Jun, 2021
Predict the output of following Java program.
class demoClass{ int a = 1; void func() { demo obj = new demo(); obj.display(); } class demo { int b = 2; void display() { System.out.println("\na = " + a); } } void get() ... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n28 Jun, 2021"
},
{
"code": null,
"e": 100,
"s": 54,
"text": "Predict the output of following Java program."
},
{
"code": "class demoClass{ int a = 1; void func() { demo obj = new demo(); obj.display(); ... |
Querying maximum number of divisors that a number in a given range has | 06 Apr, 2021
Given Q queries, of type: L R, for each query you must print the maximum number of divisors that a number x (L <= x <= R) has. Examples:
L = 1 R = 10:
1 has 1 divisor.
2 has 2 divisors.
3 has 2 divisors.
4 has 3 divisors.
5 has 2 divisors.
6 has 4 divisors.
7 has 2 divisors.
... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n06 Apr, 2021"
},
{
"code": null,
"e": 191,
"s": 52,
"text": "Given Q queries, of type: L R, for each query you must print the maximum number of divisors that a number x (L <= x <= R) has. Examples: "
},
{
"code": null,
"e"... |
Java 9 features with examples | 13 Apr, 2022
Java is a general purpose, high-level programming language developed by Sun Microsystems. It is concurrent, class-based, object-oriented, and specifically designed to have as few implementation dependencies as possible. Java was meant to follow the “Write Once Run Anywhere” (WORA) principle, i.e., Java is ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n13 Apr, 2022"
},
{
"code": null,
"e": 816,
"s": 52,
"text": "Java is a general purpose, high-level programming language developed by Sun Microsystems. It is concurrent, class-based, object-oriented, and specifically designed to have as... |
Python program to print Calendar without calendar or datetime module | 10 Jul, 2020
Given the month and year. The task is to show the calendar of that month and in the given year without using any module or pre-defined functions.
Examples:
Input :
mm(1-12) :9
yy :2010
Output :
September 2010
Su Mo Tu We Th Fr Sa
01 02 03 04
05 06 07 08 09 10 11
12 13 14 15 16 17 18
19 20... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n10 Jul, 2020"
},
{
"code": null,
"e": 200,
"s": 54,
"text": "Given the month and year. The task is to show the calendar of that month and in the given year without using any module or pre-defined functions."
},
{
"code": null,
... |
Integrating Django with Reactjs using Django REST Framework | 06 Jul, 2022
In this article, we will learn the process of communicating between the Django Backend and React js frontend using the Django REST Framework. For the sake of a better understanding of the concept, we will be building a Simple Task Manager and go through the primary concepts for this type of integration bet... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n06 Jul, 2022"
},
{
"code": null,
"e": 361,
"s": 28,
"text": "In this article, we will learn the process of communicating between the Django Backend and React js frontend using the Django REST Framework. For the sake of a better understa... |
GATE CS 2008 - GeeksforGeeks | 02 Dec, 2021
If P, Q, R are subsets of the universal set U, then
U
Pc U Qc U Rc
P U Qc U Rc
Qc U Rc
The following system of equations
has a unique solution. The only possible value(s) for α is/are
any real number
one of 0, 1 or -1
either 0 or 1
0
any real number other than 5
The choice E was not ther... | [
{
"code": null,
"e": 29577,
"s": 29549,
"text": "\n02 Dec, 2021"
},
{
"code": null,
"e": 29630,
"s": 29577,
"text": "If P, Q, R are subsets of the universal set U, then "
},
{
"code": null,
"e": 29637,
"s": 29634,
"text": "U "
},
{
"code": null,
"e... |
How to make 3D Rotating Image in CSS ? | 22 Jun, 2021
In this tutorial, we will be showing you how to create a 3D rotating image gallery using simple HTML and CSS-animation property.
Explanation:
In this article, we have used mainly CSS variable, CSS flex, object-fit, transform-style, animation, transform and keyframes properties to perform this task. To read... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n22 Jun, 2021"
},
{
"code": null,
"e": 157,
"s": 28,
"text": "In this tutorial, we will be showing you how to create a 3D rotating image gallery using simple HTML and CSS-animation property."
},
{
"code": null,
"e": 170,
... |
Mutation Testing in Java (Using Jumble) | 08 May, 2017
Mutation testing is a white-box testing technique, which changes certain portions of the code to reveal possible faults. On a very high level, it is the process of rewriting the source code with some known or possible bugs or differences to the actual code in small ways in order to remove the redundancies ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n08 May, 2017"
},
{
"code": null,
"e": 474,
"s": 28,
"text": "Mutation testing is a white-box testing technique, which changes certain portions of the code to reveal possible faults. On a very high level, it is the process of rewriting t... |
Packet Switching and Delays in Computer Network | 18 Oct, 2021
Packet switching is a method of transferring the data to a network in form of packets. In order to transfer the file fast and efficiently manner over the network and minimize the transmission latency, the data is broken into small pieces of variable length, called Packet. At the destination, all these smal... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n18 Oct, 2021"
},
{
"code": null,
"e": 546,
"s": 54,
"text": "Packet switching is a method of transferring the data to a network in form of packets. In order to transfer the file fast and efficiently manner over the network and minimize... |
Python append to a file | 05 Jul, 2022
Prerequisites:
Basics of file handling
Access modes
While reading or writing to a file, access mode governs the type of operations possible in the opened file. It refers to how the file will be used once it’s opened. These modes also define the location of the File Handle in the file. The file handle is l... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n05 Jul, 2022"
},
{
"code": null,
"e": 68,
"s": 52,
"text": "Prerequisites: "
},
{
"code": null,
"e": 92,
"s": 68,
"text": "Basics of file handling"
},
{
"code": null,
"e": 105,
"s": 92,
"text": "... |
How to write comments in ReactJS ? | 19 Sep, 2021
ReactJS is a JavaScript library used for building user interfaces. It is Declarative, Component-based and Technology stack agnostic. It has been designed for speed, simplicity, and scalability. These features make it one of the most popular libraries among web developers.
In this article, we will explore c... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n19 Sep, 2021"
},
{
"code": null,
"e": 301,
"s": 28,
"text": "ReactJS is a JavaScript library used for building user interfaces. It is Declarative, Component-based and Technology stack agnostic. It has been designed for speed, simplicity... |
Threaded Binary Search Tree | Deletion | 12 Jul, 2022
A threaded binary tree node looks like following.
C++
Java
Python3
C#
Javascript
struct Node { struct Node *left, *right; int info; // false if left pointer points to predecessor // in Inorder Traversal bool lthread; // false if right pointer points to predecessor // in Inorder Trave... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n12 Jul, 2022"
},
{
"code": null,
"e": 102,
"s": 52,
"text": "A threaded binary tree node looks like following."
},
{
"code": null,
"e": 106,
"s": 102,
"text": "C++"
},
{
"code": null,
"e": 111,
"s": ... |
Python – Adjacent elements in List | 11 Oct, 2020
Given a List extract both next and previous element for each element.
Input : test_list = [3, 7, 9, 3] Output : [(None, 7), (3, 9), (7, 3), (9, None)] Explanation : for 7 left element is 3 and right, 9.
Input : test_list = [3, 7, 3] Output : [(None, 7), (3, 3), (7, None)] Explanation : for 7 left element i... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n11 Oct, 2020"
},
{
"code": null,
"e": 98,
"s": 28,
"text": "Given a List extract both next and previous element for each element."
},
{
"code": null,
"e": 231,
"s": 98,
"text": "Input : test_list = [3, 7, 9, 3] Outpu... |
Python | os.write() method | 18 Jun, 2019
OS module in Python provides functions for interacting with the operating system. OS comes under Python’s standard utility modules. This module provides a portable way of using operating system dependent functionality.
os.write() method in Python is used to write a bytestring to the given file descriptor.
... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n18 Jun, 2019"
},
{
"code": null,
"e": 273,
"s": 54,
"text": "OS module in Python provides functions for interacting with the operating system. OS comes under Python’s standard utility modules. This module provides a portable way of usi... |
Dart Programming - Map.addAll() Function | The Map.addAll() function adds all key-value pairs of other to this map.
Map.addAll(Map<K, V> other)
other − represents a key value pair.
other − represents a key value pair.
Return Type − void
void main() {
Map m = {'name':'Tom','Id':'E1001'};
print('Map :${m}');
m.addAll({'dept':'HR','email':'tom@xy... | [
{
"code": null,
"e": 2598,
"s": 2525,
"text": "The Map.addAll() function adds all key-value pairs of other to this map."
},
{
"code": null,
"e": 2628,
"s": 2598,
"text": "Map.addAll(Map<K, V> other) \n"
},
{
"code": null,
"e": 2665,
"s": 2628,
"text": "other −... |
How to change the background color of the font in PowerShell? | To change the background color of the font, you can use the GUI and command line both.
With GUI − Colors → Screen Background.
CLI −
$host.UI.RawUI.BackgroundColor = "DarkBlue"
You will notice that the background color of the text has been changed to DarkBlue. | [
{
"code": null,
"e": 1149,
"s": 1062,
"text": "To change the background color of the font, you can use the GUI and command line both."
},
{
"code": null,
"e": 1188,
"s": 1149,
"text": "With GUI − Colors → Screen Background."
},
{
"code": null,
"e": 1194,
"s": 1188... |
AWT ContainerListener Interface | The interfaceContainerListener is used for receiving container events. The class that process container events needs to implements this interface.
Following is the declaration for java.awt.event.ContainerListener interface:
public interface ContainerListener
extends EventListener
void componentAdded(ContainerEvent e) ... | [
{
"code": null,
"e": 1895,
"s": 1747,
"text": "The interfaceContainerListener is used for receiving container events. The class that process container events needs to implements this interface."
},
{
"code": null,
"e": 1972,
"s": 1895,
"text": "Following is the declaration for j... |
Count squares of size K inscribed in a square of size N - GeeksforGeeks | 16 Apr, 2021
Given two integers N and K, the task is to find the number of squares of size K that is inscribed in a square of size N.
Examples:
Input: N = 4, K = 2Output: 9Explanation:There are 9 squares of size 2 inscribed in a square of size 4.
Input: N = 5, K = 3Output: 9Explanation:There are 9 squares of size 3 ins... | [
{
"code": null,
"e": 24851,
"s": 24823,
"text": "\n16 Apr, 2021"
},
{
"code": null,
"e": 24972,
"s": 24851,
"text": "Given two integers N and K, the task is to find the number of squares of size K that is inscribed in a square of size N."
},
{
"code": null,
"e": 24982... |
JSF - Convertor Tags | JSF provides inbuilt convertors to convert its UI component's data to object used in a managed bean and vice versa. For example, these tags can convert a text into date object and can validate the format of input as well.
For these tags, you need to use the following namespaces of URI in html node.
<html
xmlns = "h... | [
{
"code": null,
"e": 2174,
"s": 1952,
"text": "JSF provides inbuilt convertors to convert its UI component's data to object used in a managed bean and vice versa. For example, these tags can convert a text into date object and can validate the format of input as well."
},
{
"code": null,
... |
C++ program to compare two Strings using Operator Overloading - GeeksforGeeks | 18 May, 2021
Pre-requisite: Operator Overloading in C++Given two strings, how to check if the two strings are equal or not, using Operator Overloading.
Examples:
Input: ABCD, XYZ
Output: ABCD is not equal to XYZ
ABCD is greater than XYZ
Input: Geeks, Geeks
Output: Geeks is equal to Geeks
Approach: Using binar... | [
{
"code": null,
"e": 25106,
"s": 25078,
"text": "\n18 May, 2021"
},
{
"code": null,
"e": 25245,
"s": 25106,
"text": "Pre-requisite: Operator Overloading in C++Given two strings, how to check if the two strings are equal or not, using Operator Overloading."
},
{
"code": nu... |
How to change the color of a Tkinter rectangle on clicking? | The Canvas widget is one of the most versatile widgets in the Tkinter Library. It is used for creating shapes of different types and sizes, animating objects, visualizing graphics, and many more. To change the property of a particular item in Tkinter, we can use itemconfig(**options) method. It takes options such as ba... | [
{
"code": null,
"e": 1475,
"s": 1062,
"text": "The Canvas widget is one of the most versatile widgets in the Tkinter Library. It is used for creating shapes of different types and sizes, animating objects, visualizing graphics, and many more. To change the property of a particular item in Tkinter, w... |
Check if a number can be expressed as a product of exactly K prime divisors - GeeksforGeeks | 17 Nov, 2021
Given an integer N, the task is to check if it can be expressed as a product of exactly K prime divisors. Examples:
Input: N = 12, K = 3
Output: Yes
Explanation:
12 can be expressed as product of 2×2×3.
Input: N = 14, K = 3
Output: No
Explanation:
14 can be only expressed as product of 2×7.
Approach:T... | [
{
"code": null,
"e": 25244,
"s": 25216,
"text": "\n17 Nov, 2021"
},
{
"code": null,
"e": 25361,
"s": 25244,
"text": "Given an integer N, the task is to check if it can be expressed as a product of exactly K prime divisors. Examples: "
},
{
"code": null,
"e": 25539,
... |
C# - Nullables | C# provides a special data types, the nullable types, to which you can assign normal range of values as well as null values.
For example, you can store any value from -2,147,483,648 to 2,147,483,647 or null in a Nullable<Int32> variable. Similarly, you can assign true, false, or null in a Nullable<bool> variable. Synta... | [
{
"code": null,
"e": 2395,
"s": 2270,
"text": "C# provides a special data types, the nullable types, to which you can assign normal range of values as well as null values."
},
{
"code": null,
"e": 2638,
"s": 2395,
"text": "For example, you can store any value from -2,147,483,648 ... |
Program to find average salary excluding the minimum and maximum salary in Python | Suppoe we have an array with distinct elements called salary where salary[i] is the salary of ith employee. We have to find the average salary of employees excluding the minimum and maximum salary.
So, if the input is like salary = [8000,6000,2000,8500,2500,4000], then the output will be 5125.0, as the minimum and maxi... | [
{
"code": null,
"e": 1260,
"s": 1062,
"text": "Suppoe we have an array with distinct elements called salary where salary[i] is the salary of ith employee. We have to find the average salary of employees excluding the minimum and maximum salary."
},
{
"code": null,
"e": 1545,
"s": 126... |
Selenium - Log4j Logging | Log4j is an audit logging framework that gives information about what has happened during execution. It offers the following advantages −
Enables us to understand the application run.
Enables us to understand the application run.
Log output can be saved that can be analyzed later.
Log output can be saved that can be an... | [
{
"code": null,
"e": 2013,
"s": 1875,
"text": "Log4j is an audit logging framework that gives information about what has happened during execution. It offers the following advantages −"
},
{
"code": null,
"e": 2059,
"s": 2013,
"text": "Enables us to understand the application run... |
How to Find Interior and Exterior Skeleton of Binary Images Using MATLAB? - GeeksforGeeks | 18 Jan, 2022
Skeletonization is a process for reducing foreground regions in a binary image to a skeletal remnant that largely preserves the extent and connectivity of the original region while throwing away most of the original foreground pixels. In this article, we will see how to find interior and exterior skeleton ... | [
{
"code": null,
"e": 24281,
"s": 24253,
"text": "\n18 Jan, 2022"
},
{
"code": null,
"e": 24637,
"s": 24281,
"text": "Skeletonization is a process for reducing foreground regions in a binary image to a skeletal remnant that largely preserves the extent and connectivity of the orig... |
Sorting odd and even elements separately JavaScript | We are required to write a JavaScript function that takes in an array of Integers.
The function should sort the array such all the odd numbers come first, then followed by the even number.
The order of odd or even numbers within themselves is not of much importance, but all odd numbers should come before any even numbe... | [
{
"code": null,
"e": 1145,
"s": 1062,
"text": "We are required to write a JavaScript function that takes in an array of Integers."
},
{
"code": null,
"e": 1251,
"s": 1145,
"text": "The function should sort the array such all the odd numbers come first, then followed by the even n... |
Python - Tkinter Label | This widget implements a display box where you can place text or images. The text displayed by this widget can be updated at any time you want.
It is also possible to underline part of the text (like to identify a keyboard shortcut) and span the text across multiple lines.
Here is the simple syntax to create this widge... | [
{
"code": null,
"e": 2388,
"s": 2244,
"text": "This widget implements a display box where you can place text or images. The text displayed by this widget can be updated at any time you want."
},
{
"code": null,
"e": 2518,
"s": 2388,
"text": "It is also possible to underline part ... |
C library function - tmpfile() | The C library function FILE *tmpfile(void) creates a temporary file in binary update mode (wb+). The temporary file created is automatically deleted when the stream is closed (fclose) or when the program terminates.
Following is the declaration for tmpfile() function.
FILE *tmpfile(void)
NA
NA
If successful, the functi... | [
{
"code": null,
"e": 2223,
"s": 2007,
"text": "The C library function FILE *tmpfile(void) creates a temporary file in binary update mode (wb+). The temporary file created is automatically deleted when the stream is closed (fclose) or when the program terminates."
},
{
"code": null,
"e": ... |
CodeIgniter - File Uploading | Using File Uploading class, we can upload files and we can also, restrict the type and size of the file to be uploaded. Follow the steps shown in the given example to understand the file uploading process in CodeIgniter.
Copy the following code and store it at application/view/Upload_form.php.
<html>
<head>
... | [
{
"code": null,
"e": 2540,
"s": 2319,
"text": "Using File Uploading class, we can upload files and we can also, restrict the type and size of the file to be uploaded. Follow the steps shown in the given example to understand the file uploading process in CodeIgniter."
},
{
"code": null,
... |
C# Enum IsDefined Method | The IsDefined method returns true if a given integral value, or its name as a string, is present in a specified enum.
The following is our enum −
enum Subjects { Maths, Science, English, Economics };
The above is initialized by default i.e.
Maths = 0, Science = 1, English = 2, Economics = 3
Therefore, when we will find... | [
{
"code": null,
"e": 1180,
"s": 1062,
"text": "The IsDefined method returns true if a given integral value, or its name as a string, is present in a specified enum."
},
{
"code": null,
"e": 1208,
"s": 1180,
"text": "The following is our enum −"
},
{
"code": null,
"e":... |
Machine learning model deployment with C++ | by Babatunde | Towards Data Science | Recently, I have been fascinated with how interesting it would be to build a mathematically inclined application and deploy it at scale without any restriction to model size, platform, or need for api calls. I know that Python has enough of a library for working with prototypes of machine learning projects, however not... | [
{
"code": null,
"e": 596,
"s": 172,
"text": "Recently, I have been fascinated with how interesting it would be to build a mathematically inclined application and deploy it at scale without any restriction to model size, platform, or need for api calls. I know that Python has enough of a library for ... |
Memory Limit Exceeded Error | 13 Jul, 2021
Memory Limit Exceeded Error: It typically occurs when no memory limit has been set. It means that the program is trying to allocate more memory than the memory limit for the particular problem. For Example, if the memory limit is 256 MB, then there is no need to write code that requires more than 256 MB of... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n13 Jul, 2021"
},
{
"code": null,
"e": 506,
"s": 52,
"text": "Memory Limit Exceeded Error: It typically occurs when no memory limit has been set. It means that the program is trying to allocate more memory than the memory limit for the ... |
Node.js Date.isValid() API | 12 Mar, 2021
The date-and-time.Date.isValid() is a minimalist collection of functions for manipulating JS date and time module which is used to validate the particular date and time with its string format.
Required Module: Install the module by npm or used it locally.
By using npm.
npm install date-and-time --save
By u... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n12 Mar, 2021"
},
{
"code": null,
"e": 221,
"s": 28,
"text": "The date-and-time.Date.isValid() is a minimalist collection of functions for manipulating JS date and time module which is used to validate the particular date and time with i... |
Program to convert temperature from degree Celsius to Kelvin | 24 May, 2022
Given temperature in degree Celsius, convert it into to Kelvin . Examples:
Input : C = 100
Output : k = 373.15
Input : C = 110
Output : k = 383.15
Formula for converting temperature in degree Celsius to kelvin-
K = ( °C + 273.15 )
0 °C = 273.15 kelvin
Below is the program for temperature conversion:... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n24 May, 2022"
},
{
"code": null,
"e": 105,
"s": 28,
"text": "Given temperature in degree Celsius, convert it into to Kelvin . Examples: "
},
{
"code": null,
"e": 178,
"s": 105,
"text": "Input : C = 100\nOutput : k =... |
How do you display JavaScript datetime in 12 hour AM/PM format? | 28 Jun, 2019
JavaScript uses the 24-hour format as default for DateTime. However, daytime in JavaScript can be displayed in 12 hour AM/PM format using several approaches. We will look into a couple in this article.
Approach 1:In this approach, we will change the DateTime format by only using native methods. Simply put,... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n28 Jun, 2019"
},
{
"code": null,
"e": 230,
"s": 28,
"text": "JavaScript uses the 24-hour format as default for DateTime. However, daytime in JavaScript can be displayed in 12 hour AM/PM format using several approaches. We will look into... |
Ruby | String chomp! Method | 13 Dec, 2019
chomp! is a String class method in Ruby which is used to returns new String with the given record separator removed from the end of str (if present). chomp method will also removes carriage return characters (that is it will remove \n, \r, and \r\n) if $/ has not been changed from the default Ruby record s... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n13 Dec, 2019"
},
{
"code": null,
"e": 478,
"s": 28,
"text": "chomp! is a String class method in Ruby which is used to returns new String with the given record separator removed from the end of str (if present). chomp method will also re... |
Python | os.chmod method | 21 Sep, 2018
os.chmod() method in Python is used to change the mode of path to the numeric mode.
Syntax:
os.chmod(path, mode)
Parameters:path – path name of the file or directory pathmode – mode may take one of the following values:
stat.S_ISUID : Set user ID on execution
stat.S_ISGID : Set group ID on execution
stat.S... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n21 Sep, 2018"
},
{
"code": null,
"e": 112,
"s": 28,
"text": "os.chmod() method in Python is used to change the mode of path to the numeric mode."
},
{
"code": null,
"e": 120,
"s": 112,
"text": "Syntax:"
},
{
... |
ReactJS | useEffect Hook | 26 Jan, 2022
The motivation behind the introduction of useEffect Hook is to eliminate the side-effects of using class-based components. For example, tasks like updating the DOM, fetching data from API end-points, setting up subscriptions or timers, etc can be lead to unwarranted side-effects. Since the render method is... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n26 Jan, 2022"
},
{
"code": null,
"e": 1154,
"s": 54,
"text": "The motivation behind the introduction of useEffect Hook is to eliminate the side-effects of using class-based components. For example, tasks like updating the DOM, fetching... |
Python program to print positive numbers in a list | 26 Oct, 2018
Given a list of numbers, write a Python program to print all positive numbers in given list.
Example:
Input: list1 = [12, -7, 5, 64, -14]
Output: 12, 5, 64
Input: list2 = [12, 14, -95, 3]
Output: [12, 14, 3]
Example #1: Print all positive numbers from given list using for loop
Iterate each element in the ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n26 Oct, 2018"
},
{
"code": null,
"e": 145,
"s": 52,
"text": "Given a list of numbers, write a Python program to print all positive numbers in given list."
},
{
"code": null,
"e": 154,
"s": 145,
"text": "Example:"
... |
What does start() function do in multithreading in Java? | 29 Nov, 2021
We have discussed that Java threads are typically created using one of the two methods : (1) Extending thread class. (2) Implementing RunnableIn both the approaches, we override the run() function, but we start a thread by calling the start() function. So why don’t we directly call the overridden run() fun... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n29 Nov, 2021"
},
{
"code": null,
"e": 531,
"s": 52,
"text": "We have discussed that Java threads are typically created using one of the two methods : (1) Extending thread class. (2) Implementing RunnableIn both the approaches, we overr... |
Generating random number list in Python | 05 Sep, 2021
Sometimes, in making programs for gaming or gambling, we come across the task of creating the list all with random numbers. This task is to perform in general using loop and appending the random numbers one by one. But there is always a requirement to perform this in most concise manner. Let’s discuss cert... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n05 Sep, 2021"
},
{
"code": null,
"e": 371,
"s": 28,
"text": "Sometimes, in making programs for gaming or gambling, we come across the task of creating the list all with random numbers. This task is to perform in general using loop and a... |
Interacting with Webpage – Selenium Python | 10 Sep, 2020
Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium WebDriver. To open a webpage using Selenium Python, checkout – Navigating links using get method – Selenium Python. Just being able ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n10 Sep, 2020"
},
{
"code": null,
"e": 644,
"s": 52,
"text": "Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium... |
Privacy Enhanced Mail (PEM) and it’s Working | 08 Jul, 2022
Privacy Enhanced Mail (PEM) is an email security standard to provide secure electronic mail communication over the internet. Security of email messages has become extremely important nowadays. In order to deal with the security issues of emails the internet architecture board has adopted it.
The PEM mainly... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n08 Jul, 2022"
},
{
"code": null,
"e": 321,
"s": 28,
"text": "Privacy Enhanced Mail (PEM) is an email security standard to provide secure electronic mail communication over the internet. Security of email messages has become extremely im... |
Scala | Case Class and Case Object | 28 Feb, 2019
A Case Class is just like a regular class, which has a feature for modeling unchangeable data. It is also constructive in pattern matching. It has been defined with a modifier case, due to this case keyword, we can get some benefits to stop oneself from doing a sections of codes that have to be included in... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n28 Feb, 2019"
},
{
"code": null,
"e": 513,
"s": 28,
"text": "A Case Class is just like a regular class, which has a feature for modeling unchangeable data. It is also constructive in pattern matching. It has been defined with a modifier... |
Named Return Parameters in Golang | 25 Jan, 2022
Prerequisite: Functions in GolangIn Golang, Named Return Parameters are generally termed as the named parameters. Golang allows giving the names to the return or result parameters of the functions in the function signature or definition. Or you can say it is the explicit naming of the return variables in t... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n25 Jan, 2022"
},
{
"code": null,
"e": 805,
"s": 54,
"text": "Prerequisite: Functions in GolangIn Golang, Named Return Parameters are generally termed as the named parameters. Golang allows giving the names to the return or result param... |
numpy.subtract() in Python | 10 Feb, 2019
numpy.subtract() function is used when we want to compute the difference of two array.It returns the difference of arr1 and arr2, element-wise.
Syntax : numpy.subtract(arr1, arr2, /, out=None, *, where=True, casting=’same_kind’, order=’K’, dtype=None, subok=True[, signature, extobj], ufunc ‘subtract’)
Para... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n10 Feb, 2019"
},
{
"code": null,
"e": 197,
"s": 53,
"text": "numpy.subtract() function is used when we want to compute the difference of two array.It returns the difference of arr1 and arr2, element-wise."
},
{
"code": null,
... |
Does Java support goto? | 01 Sep, 2021
Java does not support goto, it is reserved as a keyword just in case they wanted to add it to a later version.
Unlike C/C++, Java does not have goto statement, but java supports label.
The only place where a label is useful in Java is right before nested loop statements.
We can specify label name with br... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n01 Sep, 2021"
},
{
"code": null,
"e": 165,
"s": 52,
"text": "Java does not support goto, it is reserved as a keyword just in case they wanted to add it to a later version. "
},
{
"code": null,
"e": 239,
"s": 165,
"... |
Custom ArrayAdapter with ListView in Android | 26 Nov, 2020
In the previous article ArrayAdapter in Android with Example, it’s been discussed how the ArrayAdapter works and what are the data sources which can be attached to the ArrayAdapter with ListView. In this article, it’s been discussed how to implement custom ArrayAdapter with the ListView. Have a look at the... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n26 Nov, 2020"
},
{
"code": null,
"e": 438,
"s": 52,
"text": "In the previous article ArrayAdapter in Android with Example, it’s been discussed how the ArrayAdapter works and what are the data sources which can be attached to the ArrayA... |
Spring @Autowired Annotation | The @Autowired annotation provides more fine-grained control over where and how autowiring should be accomplished. The @Autowired annotation can be used to autowire bean on the setter method just like @Required annotation, constructor, a property or methods with arbitrary names and/or multiple arguments.
You can use @... | [
{
"code": null,
"e": 2733,
"s": 2426,
"text": "The @Autowired annotation provides more fine-grained control over where and how autowiring should be accomplished. The @Autowired annotation can be used to autowire bean on the setter method just like @Required annotation, constructor, a property or me... |
Python | Remove all characters except letters and numbers | 14 Jun, 2022
Given a string, the task is to remove all the characters except numbers and alphabets. String manipulation is a very important task in a day to day coding and web development. Most of the request and response in HTTP queries are in the form of strings with sometimes some useless data which we need to remov... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n14 Jun, 2022"
},
{
"code": null,
"e": 455,
"s": 28,
"text": "Given a string, the task is to remove all the characters except numbers and alphabets. String manipulation is a very important task in a day to day coding and web development.... |
How to include a font .ttf using CSS ? | 13 Aug, 2021
Adding .ttf fonts using CSS: In the late 1980s, after getting beaten by adobe’s type 1 fonts, Apple came up with a new font format type which is .ttf(True Type Font). These fonts were so awesome that, they become the most common font formats all over the world in a very short time. In fact, windows itself ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n13 Aug, 2021"
},
{
"code": null,
"e": 381,
"s": 28,
"text": "Adding .ttf fonts using CSS: In the late 1980s, after getting beaten by adobe’s type 1 fonts, Apple came up with a new font format type which is .ttf(True Type Font). These fo... |
HTML <body> Tag | 17 Mar, 2022
The <body> tag in HTML is used to define the main content present inside an HTML page. It is always enclosed within <html>tag. The <body> tag is the last child of <html> tag. A body tag contains starting as well as an ending tag.
Syntax:
<body> Body Contents... </body>
Attributes: There are many attribut... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n17 Mar, 2022"
},
{
"code": null,
"e": 284,
"s": 53,
"text": "The <body> tag in HTML is used to define the main content present inside an HTML page. It is always enclosed within <html>tag. The <body> tag is the last child of <html> tag.... |
MongoDB – Equality Operator $eq | 27 Mar, 2020
MongoDB provides different types of comparison operators and an equality operator($eq) is one of them. The equality operator( $eq ) is used to match the documents where the value of the field is equal to the specified value. In other words, the $eq operator is used to specify the equality condition.
Import... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n27 Mar, 2020"
},
{
"code": null,
"e": 354,
"s": 53,
"text": "MongoDB provides different types of comparison operators and an equality operator($eq) is one of them. The equality operator( $eq ) is used to match the documents where the v... |
Next Permutation | Practice | GeeksforGeeks | Implement the next permutation, which rearranges the list of numbers into Lexicographically next greater permutation of list of numbers. If such arrangement is not possible, it must be rearranged to the lowest possible order i.e. sorted in an ascending order. You are given an list of numbers arr[ ] of size N.
Example 1... | [
{
"code": null,
"e": 549,
"s": 238,
"text": "Implement the next permutation, which rearranges the list of numbers into Lexicographically next greater permutation of list of numbers. If such arrangement is not possible, it must be rearranged to the lowest possible order i.e. sorted in an ascending or... |
Hierarchical treeview in Python GUI application | 18 Jan, 2021
Python uses different GUI applications that are helpful for the users while interacting with the applications they are using. There are basically three GUI(s) that python uses namely Tkinter, wxPython, and PyQt. All of these can operate with windows, Linux, and mac-OS. However, these GUI applications have ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n18 Jan, 2021"
},
{
"code": null,
"e": 556,
"s": 28,
"text": "Python uses different GUI applications that are helpful for the users while interacting with the applications they are using. There are basically three GUI(s) that python uses... |
cksum command in Linux with examples | 15 May, 2019
cksum command in Linux is used to display a CRC(Cyclic Redundancy Check) value, the byte size of the file and the name of the file to standard output. CRC is unique for each file and only changes if the file is edited. It is used to check whether the file had accidentally corrupted while transfer. If the C... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n15 May, 2019"
},
{
"code": null,
"e": 421,
"s": 28,
"text": "cksum command in Linux is used to display a CRC(Cyclic Redundancy Check) value, the byte size of the file and the name of the file to standard output. CRC is unique for each f... |
GATE | Gate IT 2008 | Question 69 | 16 Nov, 2020
A Binary Search Tree (BST) stores values in the range 37 to 573. Consider the following sequence of keys.
I. 81, 537, 102, 439, 285, 376, 305
II. 52, 97, 121, 195, 242, 381, 472
III. 142, 248, 520, 386, 345, 270, 307
IV. 550, 149, 507, 395, 463, 402, 270
Suppose the BST has been unsuccessfully searched f... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n16 Nov, 2020"
},
{
"code": null,
"e": 160,
"s": 54,
"text": "A Binary Search Tree (BST) stores values in the range 37 to 573. Consider the following sequence of keys."
},
{
"code": null,
"e": 311,
"s": 160,
"text": ... |
How to Manage Audio Focus in Android? | 14 Dec, 2020
The audio focus in Android needs to be managed and it is one of the important to handle the audio interruptions. In android, many applications play media simultaneously, and to increase the User Experience the Audio interruptions are handled. For example, if the application is playing Audio, suddenly there... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n14 Dec, 2020"
},
{
"code": null,
"e": 801,
"s": 54,
"text": "The audio focus in Android needs to be managed and it is one of the important to handle the audio interruptions. In android, many applications play media simultaneously, and ... |
Industrial Classification of Websites by Machine Learning with hands-on Python | by Ridham Dave | Towards Data Science | Hey folks, welcome to my first technical tutorial. In this tutorial, I would like to explain extraction, cleaning and classification of websites into different categories. I will use python environment to run my code for data scraping and use neural network to classify websites.
Text classification is one of the widely... | [
{
"code": null,
"e": 327,
"s": 47,
"text": "Hey folks, welcome to my first technical tutorial. In this tutorial, I would like to explain extraction, cleaning and classification of websites into different categories. I will use python environment to run my code for data scraping and use neural networ... |
How I developed my Web App for Data Visualization with Python | by Papa Moryba Kouate | Towards Data Science | Introduction
I am not a web developer, but as a data analyst I think it is very useful to have a web application for data visualization where you can deploy your data and show the world your results. So, I decided to develop my own data dashboard in which I will upload my future results. You can see it here. For a bett... | [
{
"code": null,
"e": 185,
"s": 172,
"text": "Introduction"
},
{
"code": null,
"e": 591,
"s": 185,
"text": "I am not a web developer, but as a data analyst I think it is very useful to have a web application for data visualization where you can deploy your data and show the world ... |
Python Pandas - Series | Series is a one-dimensional labeled array capable of holding data of any type (integer, string, float, python objects, etc.). The axis labels are collectively called index.
A pandas Series can be created using the following constructor −
pandas.Series( data, index, dtype, copy)
The parameters of the constructor are as... | [
{
"code": null,
"e": 2616,
"s": 2443,
"text": "Series is a one-dimensional labeled array capable of holding data of any type (integer, string, float, python objects, etc.). The axis labels are collectively called index."
},
{
"code": null,
"e": 2681,
"s": 2616,
"text": "A pandas ... |
Higher-Order Arrow Functions in JavaScript - GeeksforGeeks | 11 Oct, 2019
Prerequisite: Arrow Functions
A Higher-Order function is a function that receives a function as an argument otherwise returns function as output. Higher-Order Arrow function implies using arrow functions (in ES6) along with Higher-Order functions.
Needs of Higher Order Arrow Function:
In general way, the p... | [
{
"code": null,
"e": 24806,
"s": 24778,
"text": "\n11 Oct, 2019"
},
{
"code": null,
"e": 24836,
"s": 24806,
"text": "Prerequisite: Arrow Functions"
},
{
"code": null,
"e": 25054,
"s": 24836,
"text": "A Higher-Order function is a function that receives a functi... |
How to remove a column from an R data frame? | This can be easily done by using subset function.
> df <- data.frame(x=1:5, y=6:10, z=11:15, a=16:20)
> df
x y z a
1 1 6 11 16
2 2 7 12 17
3 3 8 13 18
4 4 9 14 19
5 5 10 15 20
To remove only one column
> df <- subset (df, select = -x)
> df
y z a
1 6 11 16
2 7 12 17
3 8 13 18
4 9 14 19
5 10 15 20
To remove two column... | [
{
"code": null,
"e": 1112,
"s": 1062,
"text": "This can be easily done by using subset function."
},
{
"code": null,
"e": 1241,
"s": 1112,
"text": "> df <- data.frame(x=1:5, y=6:10, z=11:15, a=16:20)\n> df\nx y z a\n1 1 6 11 16\n2 2 7 12 17\n3 3 8 13 18\n4 4 9 14 19\n5 5 10 15... |
Java AWS - How to Send Messages to SQS Queues - onlinetutorialspoint | PROGRAMMINGJava ExamplesC Examples
Java Examples
C Examples
C Tutorials
aws
JAVAEXCEPTIONSCOLLECTIONSSWINGJDBC
EXCEPTIONS
COLLECTIONS
SWING
JDBC
JAVA 8
SPRING
SPRING BOOT
HIBERNATE
PYTHON
PHP
JQUERY
PROGRAMMINGJava ExamplesC Examples
Java Examples
C Examples
C Tutorials
aws
In this tutorial, we will see how to send mes... | [
{
"code": null,
"e": 158,
"s": 123,
"text": "PROGRAMMINGJava ExamplesC Examples"
},
{
"code": null,
"e": 172,
"s": 158,
"text": "Java Examples"
},
{
"code": null,
"e": 183,
"s": 172,
"text": "C Examples"
},
{
"code": null,
"e": 195,
"s": 183,
... |
Factorial | Practice | GeeksforGeeks | Given a positive integer, N. Find the factorial of N.
Example 1:
Input:
N = 5
Output:
120
Explanation:
5*4*3*2*1 = 120
Example 2:
Input:
N = 4
Output:
24
Explanation:
4*3*2*1 = 24
Your Task:
You don't need to read input or print anything. Your task is to complete the function factorial() which takes an integer N as... | [
{
"code": null,
"e": 294,
"s": 238,
"text": "Given a positive integer, N. Find the factorial of N.\n "
},
{
"code": null,
"e": 305,
"s": 294,
"text": "Example 1:"
},
{
"code": null,
"e": 359,
"s": 305,
"text": "Input:\nN = 5\nOutput:\n120\nExplanation:\n5*4*3*... |
OpenCV - Morphological Operations | In the earlier chapters, we discussed the process of erosion and dilation. In addition to these two, OpenCV has more morphological transformations. The morphologyEx() of the method of the class Imgproc is used to perform these operations on a given image.
Following is the syntax of this method −
morphologyEx(src, dst, ... | [
{
"code": null,
"e": 3260,
"s": 3004,
"text": "In the earlier chapters, we discussed the process of erosion and dilation. In addition to these two, OpenCV has more morphological transformations. The morphologyEx() of the method of the class Imgproc is used to perform these operations on a given imag... |
Metrics and Python. In a series of three articles, we will... | by Gabriel Naya | Towards Data Science | As a programmer I lacked on studies about mathematical and statistical concepts. Now with more experience I’ve decided to compile and share some of the metrics and concepts that I’ve faced for different problems I encountered.
In this series of articles, we will briefly review each of them, their use, their formulas, e... | [
{
"code": null,
"e": 274,
"s": 47,
"text": "As a programmer I lacked on studies about mathematical and statistical concepts. Now with more experience I’ve decided to compile and share some of the metrics and concepts that I’ve faced for different problems I encountered."
},
{
"code": null,
... |
DALL·E by OpenAI: Creating
Images from Text | by Merzmensch | Towards Data Science | It’s the 5th of January 2021, and OpenAI reports back already with another AI breakthrough. 2020 they impacted the AI world at least with two Milestones: GPT-3, a powerful Natural Language Processing model, and a music generator JukeBox.
Driven by Transformer, these two approaches in various media created coherent and ... | [
{
"code": null,
"e": 409,
"s": 171,
"text": "It’s the 5th of January 2021, and OpenAI reports back already with another AI breakthrough. 2020 they impacted the AI world at least with two Milestones: GPT-3, a powerful Natural Language Processing model, and a music generator JukeBox."
},
{
"co... |
How can we insert a new row into a MySQL table? | With the help of INSERT INTO command, a new row can be inserted into a table.
INSERT INTO table_name values(value1,value2,...)
Suppose we have a table named ‘Employee’ with three columns ‘Emp_id’, ‘Emp_name’ and ‘Emp_Sal’ then with the help of following query we can add new rows to the table −
mysql> INSERT INTO Employ... | [
{
"code": null,
"e": 1140,
"s": 1062,
"text": "With the help of INSERT INTO command, a new row can be inserted into a table."
},
{
"code": null,
"e": 1189,
"s": 1140,
"text": "INSERT INTO table_name values(value1,value2,...)"
},
{
"code": null,
"e": 1357,
"s": 118... |
Salesforce - Variables & Formulas | The data from the Salesforce objects can be brought into the Visualforce page using variables and expressions. Like other normal programming language, the Visualforce language has expressions, operators and literals, etc. The basic building block of this language is expressions.
The syntax of a Visualforce expression i... | [
{
"code": null,
"e": 2837,
"s": 2557,
"text": "The data from the Salesforce objects can be brought into the Visualforce page using variables and expressions. Like other normal programming language, the Visualforce language has expressions, operators and literals, etc. The basic building block of thi... |
How to wrap long lines in Python? | The preferred way of wrapping long lines is by using Python's implied line continuation inside parentheses, brackets and braces. If necessary, you can add an extra pair of parentheses around an expression, but sometimes using a backslash looks better. Make sure to indent the continued line appropriately. The preferred ... | [
{
"code": null,
"e": 1461,
"s": 1062,
"text": "The preferred way of wrapping long lines is by using Python's implied line continuation inside parentheses, brackets and braces. If necessary, you can add an extra pair of parentheses around an expression, but sometimes using a backslash looks better. M... |
Prolog - Towers of Hanoi Problem | Towers of Hanoi Problem is a famous puzzle to move N disks from the source peg/tower to the target peg/tower using the intermediate peg as an auxiliary holding peg. There are two conditions that are to be followed while solving this problem −
A larger disk cannot be placed on a smaller disk.
A larger disk cannot be pla... | [
{
"code": null,
"e": 2335,
"s": 2092,
"text": "Towers of Hanoi Problem is a famous puzzle to move N disks from the source peg/tower to the target peg/tower using the intermediate peg as an auxiliary holding peg. There are two conditions that are to be followed while solving this problem −"
},
{
... |
Cucumber - Data Tables | While working on automation, we may face variety of scenarios. Each scenario carries a different meaning and needs.
Since the beginning, we have been taking an example of login functionality for a social networking site, where we just had two input parameters to be passed. Let’s think of some more possibility. How abou... | [
{
"code": null,
"e": 2078,
"s": 1962,
"text": "While working on automation, we may face variety of scenarios. Each scenario carries a different meaning and needs."
},
{
"code": null,
"e": 2457,
"s": 2078,
"text": "Since the beginning, we have been taking an example of login funct... |
How animate(), hide and show elements using jQuery? | Use the hide() and show() method with animate() to hide and show elements.
You can try to run the following code to learn how to work with animate() method to hide and show elements:
Live Demo
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script>... | [
{
"code": null,
"e": 1137,
"s": 1062,
"text": "Use the hide() and show() method with animate() to hide and show elements."
},
{
"code": null,
"e": 1245,
"s": 1137,
"text": "You can try to run the following code to learn how to work with animate() method to hide and show elements:... |
Split the array into equal sum parts according to given conditions in C++ | Here we will see one problem. Suppose one array arr is given. We have to check whether the array can be split into two parts, such that −
Sub of both sub-arrays will be the same
All elements, which are multiple of 5, will be in the same group
All elements which are multiple of 3, but not multiple of 5, will be in the s... | [
{
"code": null,
"e": 1200,
"s": 1062,
"text": "Here we will see one problem. Suppose one array arr is given. We have to check whether the array can be split into two parts, such that −"
},
{
"code": null,
"e": 1240,
"s": 1200,
"text": "Sub of both sub-arrays will be the same"
}... |
Program to find maximum in generated array in Python | Suppose we have a number n. We have to generate an array A of length n + 1 in the following way −
A[0] = 0
A[0] = 0
A[1] = 1
A[1] = 1
A[2 * i] = A[i] if 2 <= 2 * i <= n
A[2 * i] = A[i] if 2 <= 2 * i <= n
A[2 * i + 1] = A[i] + A[i + 1] if 2 <= 2 * i + 1 <= n
A[2 * i + 1] = A[i] + A[i + 1] if 2 <= 2 * i + 1 <= n
Finally ... | [
{
"code": null,
"e": 1160,
"s": 1062,
"text": "Suppose we have a number n. We have to generate an array A of length n + 1 in the following way −"
},
{
"code": null,
"e": 1169,
"s": 1160,
"text": "A[0] = 0"
},
{
"code": null,
"e": 1178,
"s": 1169,
"text": "A[0]... |
SQL Query to Display Last 50% Records from Employee Table - GeeksforGeeks | 13 Apr, 2021
Here, we are going to see how to display the last 50% of records from an Employee Table in MySQL and MS SQL server’s databases.
For the purpose of demonstration, we will be creating an Employee table in a database called “geeks“.
Use the below SQL statement to create a database called geeks:
CREATE DATABA... | [
{
"code": null,
"e": 23949,
"s": 23918,
"text": " \n13 Apr, 2021\n"
},
{
"code": null,
"e": 24077,
"s": 23949,
"text": "Here, we are going to see how to display the last 50% of records from an Employee Table in MySQL and MS SQL server’s databases."
},
{
"code": null,
... |
Check if a string can be formed from another string by at most X circular clockwise shifts - GeeksforGeeks | 02 Jun, 2021
Given an integer X and two strings S1 and S2, the task is to check that string S1 can be converted to the string S2 by shifting characters circular clockwise atmost X times.
Input: S1 = “abcd”, S2 = “dddd”, X = 3 Output: Yes Explanation: Given string S1 can be converted to string S2 as- Character “a” – Shi... | [
{
"code": null,
"e": 25113,
"s": 25085,
"text": "\n02 Jun, 2021"
},
{
"code": null,
"e": 25287,
"s": 25113,
"text": "Given an integer X and two strings S1 and S2, the task is to check that string S1 can be converted to the string S2 by shifting characters circular clockwise atmos... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.