title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
What is the difference between implicit and explicit type conversion in C#?
The following is the difference between implicit and explicit type conversion − These conversions are performed by C# in a type-safe manner. To understand the concept, let us implicitly convert int to long. int val1 = 11000; int val2 = 35600; long sum; sum = val1 + val2; Above, we have two integer variable and when we...
[ { "code": null, "e": 1142, "s": 1062, "text": "The following is the difference between implicit and explicit type conversion −" }, { "code": null, "e": 1203, "s": 1142, "text": "These conversions are performed by C# in a type-safe manner." }, { "code": null, "e": 1269...
How to Check if a Number is Odd or Even using Python?
Python's modulo (%) operator (also called remainder operator) is useful to determine if a number is odd or even. We obtain remainder of division of a number by 2. If it is 0 , it is even otherwise it is odd no=int(input('enter number')) if no%2==0: print ('{} is even'.format(no)) else: print ('{} is odd'.format...
[ { "code": null, "e": 1269, "s": 1062, "text": "Python's modulo (%) operator (also called remainder operator) is useful to determine if a number is odd or even. We obtain remainder of division of a number by 2. If it is 0 , it is even otherwise it is odd" }, { "code": null, "e": 1388, ...
F# - Modules
As per MSDN library, an F# module is a grouping of F# code constructs, such as types, values, function values, and code in do bindings. It is implemented as a common language runtime (CLR) class that has only static members. Depending upon the situation whether the whole file is included in the module, there are two ty...
[ { "code": null, "e": 2386, "s": 2161, "text": "As per MSDN library, an F# module is a grouping of F# code constructs, such as types, values, function values, and code in do bindings. It is implemented as a common language runtime (CLR) class that has only static members." }, { "code": null, ...
Instruction type RLC in 8085 Microprocessor
In 8085 Instruction set, there is one mnemonic RLC stands for “Rotate Left Accumulator”. It rotates the Accumulator contents to the left by 1-bit position. The following Fig. shows the operation explicitly. In this fig. it has been depicted that the most significant bit of the Accumulator will come out and left rotate ...
[ { "code": null, "e": 1269, "s": 1062, "text": "In 8085 Instruction set, there is one mnemonic RLC stands for “Rotate Left Accumulator”. It rotates the Accumulator contents to the left by 1-bit position. The following Fig. shows the operation explicitly." }, { "code": null, "e": 1786, ...
PiExa- ->Raspberry Pi + Amazon Alexa: A step-by-step guide to build your own hands-free Alexa with Raspberry Pi | by Naveen Manwani | Towards Data Science
Motivation Monk: Read everyday something no one else is reading, Think everyday something no one else is thinking. It is bad for the mind to be always part of unanimity. PiExa ?? I know you all must be wondering what this writer is upto, what is PiExa why would this term has anything to do with Amazon Alexa and Raspber...
[ { "code": null, "e": 342, "s": 172, "text": "Motivation Monk: Read everyday something no one else is reading, Think everyday something no one else is thinking. It is bad for the mind to be always part of unanimity." }, { "code": null, "e": 609, "s": 342, "text": "PiExa ?? I know ...
Turn Excel Into a Beautiful Web Application Using Streamlit | by Manfye Goh | Towards Data Science
Streamlit is an open-source Python library that makes it easy to create and share beautiful, custom web apps for machine learning and data science projects [1] One of the main features of Streamlit is it provides you a Jupyter Notebook-like environment where your code is updated live as you save your script. This helps...
[ { "code": null, "e": 332, "s": 172, "text": "Streamlit is an open-source Python library that makes it easy to create and share beautiful, custom web apps for machine learning and data science projects [1]" }, { "code": null, "e": 550, "s": 332, "text": "One of the main features o...
How to define and query json columns in PostgreSQL?
The ability to define JSON columns in PostgreSQL makes it very powerful and helps PostgreSQL users experience the best of both worlds: SQL and NoSQL. Creating JSON columns is quite straightforward. You just have to create/ define it like any other column and use the data type as JSON. Let us create a new table in Postg...
[ { "code": null, "e": 1212, "s": 1062, "text": "The ability to define JSON columns in PostgreSQL makes it very powerful and helps PostgreSQL users experience the best of both worlds: SQL and NoSQL." }, { "code": null, "e": 1348, "s": 1212, "text": "Creating JSON columns is quite s...
What is the use of $ErrorView in PowerShell?
$Errorview variable determines the display format of the error message in PowerShell. Before PowerShell 7 there were mainly two views, Normal View (Default view) Normal View (Default view) Category View Category View With PowerShell version 7, one new additional error view category is included and now there are 3 $Erro...
[ { "code": null, "e": 1197, "s": 1062, "text": "$Errorview variable determines the display format of the error message in PowerShell. Before PowerShell 7 there were mainly two views," }, { "code": null, "e": 1224, "s": 1197, "text": "Normal View (Default view)" }, { "code"...
How to Work with Nested Data in BigQuery | by Christianlauer | Towards Data Science
Cloud data lakes and warehouses are on the rise — one example is Google’s BigQuery. BigQuery is the most powerful with denormalized data. Instead of working with traditional schemas like star or snowflake schemas, you should denormalize your data and use nested and recurring columns. These columns can preserve relation...
[ { "code": null, "e": 572, "s": 172, "text": "Cloud data lakes and warehouses are on the rise — one example is Google’s BigQuery. BigQuery is the most powerful with denormalized data. Instead of working with traditional schemas like star or snowflake schemas, you should denormalize your data and use ...
Download webpage in Java
We can download a web page using its URL in Java. Following are the steps needed. Create URL object using url string.Download webpage in Java Create URL object using url string. Download webpage in Java Create a BufferReader object using url.openStream() method.BufferedReader reader = new BufferedReader(new InputStream...
[ { "code": null, "e": 1144, "s": 1062, "text": "We can download a web page using its URL in Java. Following are the steps needed." }, { "code": null, "e": 1204, "s": 1144, "text": "Create URL object using url string.Download webpage in Java" }, { "code": null, "e": 124...
IntStream map() method in Java
The IntStream map() method returns the new stream consisting of the results of applying the given function to the elements of this stream. The syntax is as follows IntStream map(IntUnaryOperator mapper) Here, mapper parameter is a non-interfering, stateless function to apply to each element Create an IntStream and add ...
[ { "code": null, "e": 1201, "s": 1062, "text": "The IntStream map() method returns the new stream consisting of the results of applying the given function to the elements of this stream." }, { "code": null, "e": 1226, "s": 1201, "text": "The syntax is as follows" }, { "cod...
Merge k Sorted Arrays | Practice | GeeksforGeeks
Given K sorted arrays arranged in the form of a matrix of size K*K. The task is to merge them into one sorted array. Example 1: Input: K = 3 arr[][] = {{1,2,3},{4,5,6},{7,8,9}} Output: 1 2 3 4 5 6 7 8 9 Explanation:Above test case has 3 sorted arrays of size 3, 3, 3 arr[][] = [[1, 2, 3],[4, 5, 6], [7, 8, 9]] The merg...
[ { "code": null, "e": 367, "s": 238, "text": "Given K sorted arrays arranged in the form of a matrix of size K*K. The task is to merge them into one sorted array.\nExample 1: " }, { "code": null, "e": 604, "s": 367, "text": "Input:\nK = 3\narr[][] = {{1,2,3},{4,5,6},{7,8,9}}\nOutp...
Random Forest for prediction. Using Random Forest to predict... | by Aditya Kumar | Towards Data Science
It’s a process that operates among multiple decision trees to get the optimum result by choosing the majority among them as the best value. Consider the above image as a representation of multiple decision trees with different results. Out of 4 decision trees, 3 has the same output as 1 while one decision tree has outp...
[ { "code": null, "e": 312, "s": 172, "text": "It’s a process that operates among multiple decision trees to get the optimum result by choosing the majority among them as the best value." }, { "code": null, "e": 749, "s": 312, "text": "Consider the above image as a representation o...
ReactJS - Animation
Animation is an exciting feature of modern web application. It gives a refreshing feel to the application. React community provides many excellent react based animation library like React Motion, React Reveal, react-animations, etc., React itself provides an animation library, React Transition Group as an add-on option...
[ { "code": null, "e": 2509, "s": 2033, "text": "Animation is an exciting feature of modern web application. It gives a refreshing feel to the application. React community provides many excellent react based animation library like React Motion, React Reveal, react-animations, etc., React itself provid...
Check if any King is unsafe on the Chessboard or not - GeeksforGeeks
18 Oct, 2021 Given a matrix board[][] consisting of the characters K or k, Q or q, B or b, N or n, R or r, and P or p (Upper case white and lower case black) representing the King, the Queen, the Bishop, the Knight, the Rook, and Pawns of Black and White color respectively, and empty spaces indicated by ‘-‘, the task i...
[ { "code": null, "e": 24982, "s": 24954, "text": "\n18 Oct, 2021" }, { "code": null, "e": 25519, "s": 24982, "text": "Given a matrix board[][] consisting of the characters K or k, Q or q, B or b, N or n, R or r, and P or p (Upper case white and lower case black) representing the K...
Collect maximum coins before hitting a dead end - GeeksforGeeks
11 Oct, 2018 Given a character matrix where every cell has one of the following values. 'C' --> This cell has coin '#' --> This cell is a blocking cell. We can not go anywhere from this. 'E' --> This cell is empty. We don't get a coin, but we can move from here. Initial position is cell (0, 0)...
[ { "code": null, "e": 25214, "s": 25186, "text": "\n11 Oct, 2018" }, { "code": null, "e": 25289, "s": 25214, "text": "Given a character matrix where every cell has one of the following values." }, { "code": null, "e": 25490, "s": 25289, "text": "'C' --> This c...
How to draw a rectangle in OpenCV using Java?
The org.opencv.imgproc package of Java OpenCV library contains a class named Imgproc. To draw a rectangle you need to invoke the rectangle() method of this class. This method accepts the following parameters − A Mat object representing the image on which the rectangle is to be drawn. A Mat object representing the image...
[ { "code": null, "e": 1272, "s": 1062, "text": "The org.opencv.imgproc package of Java OpenCV library contains a class named Imgproc. To draw a rectangle you need to invoke the rectangle() method of this class. This method accepts the following parameters −" }, { "code": null, "e": 1347, ...
How to split a string in Java?
Java provides a split() methodology you'll be able to split the string around matches of the given regular expression. The array returned by this method contains each substring of this string that is terminated by another substring that matches the given expression or is terminated by the end of the string. If the exp...
[ { "code": null, "e": 1181, "s": 1062, "text": "Java provides a split() methodology you'll be able to split the string around matches of the given regular expression." }, { "code": null, "e": 1372, "s": 1181, "text": "The array returned by this method contains each substring of th...
AngularJS | How to use ng-idle? - GeeksforGeeks
03 Jul, 2019 The ng-idle is used to decrease the burden, bandwidth, and workload of an app, website, program, or software. With the help of ng-idle log out the session of inactive users so that our precious data & the workload is getting preserved or to even taunt them to participate in more actively. The ng-idle is th...
[ { "code": null, "e": 25055, "s": 25027, "text": "\n03 Jul, 2019" }, { "code": null, "e": 25345, "s": 25055, "text": "The ng-idle is used to decrease the burden, bandwidth, and workload of an app, website, program, or software. With the help of ng-idle log out the session of inact...
How to Use Images as Backgrounds in Tkinter?
If we will create an instance of Tkinter frame and display the window while keep running it, then it will show the default output canvas. However, we can add an image inside the Tkinter canvas as a background using PhotoImage methods and Canvas methods. Since image support in Tkinter is limited to Gif, PNG and PPM, the...
[ { "code": null, "e": 1316, "s": 1062, "text": "If we will create an instance of Tkinter frame and display the window while keep running it, then it will show the default output canvas. However, we can add an image inside the Tkinter canvas as a background using PhotoImage methods and Canvas methods....
How to create an ordered list in HTML?
To create ordered list in HTML, use the <ol> tag. Ordered list starts with the <ol> tag. The list item starts with the <li> tag and will be marked as numbers, letters and roman numbers. The default is numbers. You can try to run the following code to use an ordered list in HTML − Live Demo <!DOCTYPE html> <html> <bo...
[ { "code": null, "e": 1272, "s": 1062, "text": "To create ordered list in HTML, use the <ol> tag. Ordered list starts with the <ol> tag. The list item starts with the <li> tag and will be marked as numbers, letters and roman numbers. The default is numbers." }, { "code": null, "e": 1343, ...
Python | Pandas dataframe.notnull()
25 Aug, 2021 Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes importing and analyzing data much easier.Pandas dataframe.notnull() function detects existing/ non-missing values in the dataframe. The...
[ { "code": null, "e": 28, "s": 0, "text": "\n25 Aug, 2021" }, { "code": null, "e": 735, "s": 28, "text": "Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes imp...
C/C++ Preprocessors
22 Jun, 2022 As the name suggests, Preprocessors are programs that process our source code before compilation. There are a number of steps involved between writing a program and executing a program in C / C++. Let us have a look at these steps before we actually start learning about Preprocessors. You can see the inter...
[ { "code": null, "e": 54, "s": 26, "text": "\n22 Jun, 2022" }, { "code": null, "e": 340, "s": 54, "text": "As the name suggests, Preprocessors are programs that process our source code before compilation. There are a number of steps involved between writing a program and executing...
Output of C Programs | Set 3
03 Feb, 2021 Predict the output of the below program. Question 1 c #include <stdio.h>int main(){ printf("%p", main); getchar(); return 0;} Output: Address of function main. Explanation: Name of the function is actually a pointer variable to the function and prints the address of the function. Symbol table is implem...
[ { "code": null, "e": 52, "s": 24, "text": "\n03 Feb, 2021" }, { "code": null, "e": 105, "s": 52, "text": "Predict the output of the below program. Question 1 " }, { "code": null, "e": 107, "s": 105, "text": "c" }, { "code": "#include <stdio.h>int main(...
Program to Count numbers on fingers
15 Jun, 2021 Count the given numbers on your fingers and find the correct finger on which the number ends. The first number starts from the thumb, second on the index finger, third on the middle finger, fourth on the ring finger, and fifth on the little finger. Again six comes on the ring finger and so on. Here we ob...
[ { "code": null, "e": 52, "s": 24, "text": "\n15 Jun, 2021" }, { "code": null, "e": 148, "s": 52, "text": "Count the given numbers on your fingers and find the correct finger on which the number ends. " }, { "code": null, "e": 303, "s": 148, "text": "The first...
Red-Black Tree | Set 1 (Introduction)
07 Jun, 2022 A red-black tree is a kind of self-balancing binary search tree where each node has an extra bit, and that bit is often interpreted as the color (red or black). These colors are used to ensure that the tree remains balanced during insertions and deletions. Although the balance of the tree is not perfect, i...
[ { "code": null, "e": 54, "s": 26, "text": "\n07 Jun, 2022" }, { "code": null, "e": 547, "s": 54, "text": "A red-black tree is a kind of self-balancing binary search tree where each node has an extra bit, and that bit is often interpreted as the color (red or black). These colors ...
Interesting Commands on Mac Terminal
25 Aug, 2020 Terminal is one of the most important tools in MacOS be it any field. To get good knowledge about the terminal is important. It teaches you many things in an innovative way which is liked by most of the developers. It’s a knowledge that only geeks and geniuses have. Here are some commands with the most imp...
[ { "code": null, "e": 54, "s": 26, "text": "\n25 Aug, 2020" }, { "code": null, "e": 379, "s": 54, "text": "Terminal is one of the most important tools in MacOS be it any field. To get good knowledge about the terminal is important. It teaches you many things in an innovative way w...
HTML | <th> height Attribute
26 Jun, 2019 The HTML <th> height Attribute is used to specify the height of the table header cell. If the <th> height attribute is not set then it takes default height according to content. It is not supported by HTML 5. Syntax: <th height="pixels | %"> Attribute Values: pixels: It sets the height of table header cell...
[ { "code": null, "e": 28, "s": 0, "text": "\n26 Jun, 2019" }, { "code": null, "e": 237, "s": 28, "text": "The HTML <th> height Attribute is used to specify the height of the table header cell. If the <th> height attribute is not set then it takes default height according to conten...
Fast I/O for Competitive Programming in Python
03 Nov, 2020 In Competitive Programming, it is important to read input as fast as possible to save valuable time. Input/Output in Python can be sometimes time taking in cases when the input is huge or to output any numbers of lines or a huge number of arrays(lists) line after line. Normally, the input is taken from STD...
[ { "code": null, "e": 52, "s": 24, "text": "\n03 Nov, 2020" }, { "code": null, "e": 322, "s": 52, "text": "In Competitive Programming, it is important to read input as fast as possible to save valuable time. Input/Output in Python can be sometimes time taking in cases when the inp...
numpy.fromstring() function – Python
18 Aug, 2020 numpy.fromstring() function create a new one-dimensional array initialized from text data in a string. Syntax : numpy.fromstring(string, dtype = float, count = -1, sep = ‘ ‘) Parameters : string : [str] A string that contained the data. dtype : [data-type, optional] Data-type of the array. Default data typ...
[ { "code": null, "e": 28, "s": 0, "text": "\n18 Aug, 2020" }, { "code": null, "e": 131, "s": 28, "text": "numpy.fromstring() function create a new one-dimensional array initialized from text data in a string." }, { "code": null, "e": 203, "s": 131, "text": "Syn...
Class Level Lock in Java
17 Jan, 2022 Every class in Java has a unique lock which is nothing but class level lock. If a thread wants to execute a static synchronized method, then the thread requires a class level lock. Class level lock prevents multiple threads to enter a synchronized block in any of all available instances of the class on ru...
[ { "code": null, "e": 28, "s": 0, "text": "\n17 Jan, 2022" }, { "code": null, "e": 544, "s": 28, "text": "Every class in Java has a unique lock which is nothing but class level lock. If a thread wants to execute a static synchronized method, then the thread requires a class level...
Flutter – CheckboxListTile
21 Feb, 2022 CheckboxListTile is a built-in widget in flutter. We can say it a combination of CheckBox with a ListTile. Its properties such as value, activeColor, and checkColor are similar to the CheckBox widget, and title, subtitle, contentPadding, etc are similar to the ListTile widget. We can tap anywhere on the Ch...
[ { "code": null, "e": 28, "s": 0, "text": "\n21 Feb, 2022" }, { "code": null, "e": 449, "s": 28, "text": "CheckboxListTile is a built-in widget in flutter. We can say it a combination of CheckBox with a ListTile. Its properties such as value, activeColor, and checkColor are simila...
Program to find equation of a plane passing through 3 points in C++
In this tutorial, we will be discussing a program to find equation of a plane passing through 3 points. For this we will be provided with 3 points. Our task is to find the equation of the plane consisting of or passing through those three given points. Live Demo #include <bits/stdc++.h> #include<math.h> #include <iost...
[ { "code": null, "e": 1166, "s": 1062, "text": "In this tutorial, we will be discussing a program to find equation of a plane passing through 3 points." }, { "code": null, "e": 1315, "s": 1166, "text": "For this we will be provided with 3 points. Our task is to find the equation o...
Not class selector in jQuery - GeeksforGeeks
31 May, 2019 Given a list of elements and the task is to not select a particular class using JQuery. jQuery :not() Selector: This selector selects all elements except the specified element.Syntax:$(":not(selector)")Parameters: It contains single parameter selector which is required. It specifies the element which do no...
[ { "code": null, "e": 24566, "s": 24538, "text": "\n31 May, 2019" }, { "code": null, "e": 24654, "s": 24566, "text": "Given a list of elements and the task is to not select a particular class using JQuery." }, { "code": null, "e": 24928, "s": 24654, "text": "jQ...
How to create Python dictionary from list of keys and values?
If L1 and L2 are list objects containing keys and respective values, following methods can be used to construct dictionary object. Zip two lists and convert to dictionary using dict() function >>> L1 = ['a','b','c','d'] >>> L2 = [1,2,3,4] >>> d = dict(zip(L1,L2)) >>> d {'a': 1, 'b': 2, 'c': 3, 'd': 4} Using dictionary ...
[ { "code": null, "e": 1193, "s": 1062, "text": "If L1 and L2 are list objects containing keys and respective values, following methods can be used to construct dictionary object." }, { "code": null, "e": 1255, "s": 1193, "text": "Zip two lists and convert to dictionary using dict(...
How to convert numbers to words using Python?
The constructor for the string class in python, ie, str can be used to convert a number to a string in python. For example, i = 10050 str_i = str(i) print(type(str_i)) This will give the output: <class 'str'> But if you want something that converts integers to words like 99 to ninety-nine, you have to use an external p...
[ { "code": null, "e": 1186, "s": 1062, "text": "The constructor for the string class in python, ie, str can be used to convert a number to a string in python. For example," }, { "code": null, "e": 1230, "s": 1186, "text": "i = 10050\nstr_i = str(i)\nprint(type(str_i))" }, { ...
gettext - Unix, Linux Command
Display native language translation of a textual message. gettext is an internationalization and localization system commonly used for writing multilingual programs. For gettext to work, the message catalogue is required. $ cat test.sh gettext -s "This message to be translated" $ xgettext -c / msgid "This message to...
[ { "code": null, "e": 10637, "s": 10577, "text": "\nDisplay native language translation of a textual message.\n" }, { "code": null, "e": 10801, "s": 10637, "text": "gettext is an internationalization and localization system commonly used for writing multilingual programs. For gett...
Add space between pagination links with CSS
You can try to run the following code to add space between pagination links with CSS: Live Demo <!DOCTYPE html> <html> <head> <style> .demo { display: inline-block; } .demo a { color: red; padding: 5px 12px; text-decoration: none; ...
[ { "code": null, "e": 1148, "s": 1062, "text": "You can try to run the following code to add space between pagination links with CSS:" }, { "code": null, "e": 1158, "s": 1148, "text": "Live Demo" }, { "code": null, "e": 2330, "s": 1158, "text": "<!DOCTYPE html>...
Model Management in productive ML software | by Maximilian Beckers | Towards Data Science
Developing a good Proof of Concept for a machine learning problem can be hard sometimes. You are working through tons and tons of data engineering layers and testing many different models until finally you have “cracked the code” and gotten a good score on your test set. Hurray! That is great news because now the fun r...
[ { "code": null, "e": 1616, "s": 172, "text": "Developing a good Proof of Concept for a machine learning problem can be hard sometimes. You are working through tons and tons of data engineering layers and testing many different models until finally you have “cracked the code” and gotten a good score ...
Python | Creating a Simple Drawing App in kivy - GeeksforGeeks
02 Feb, 2021 Kivy is a platform-independent GUI tool in Python. As it can be run on Android, IOS, Linux and Windows, etc. It is basically used to develop the Android application, but it does not mean that it can not be used on Desktop applications. Kivy Tutorial – Learn Kivy with Examples. In this we are going to cr...
[ { "code": null, "e": 23927, "s": 23899, "text": "\n02 Feb, 2021" }, { "code": null, "e": 24164, "s": 23927, "text": "Kivy is a platform-independent GUI tool in Python. As it can be run on Android, IOS, Linux and Windows, etc. It is basically used to develop the Android applicatio...
Spring - Bean Definition
The objects that form the backbone of your application and that are managed by the Spring IoC container are called beans. A bean is an object that is instantiated, assembled, and otherwise managed by a Spring IoC container. These beans are created with the configuration metadata that you supply to the container. For ex...
[ { "code": null, "e": 2846, "s": 2426, "text": "The objects that form the backbone of your application and that are managed by the Spring IoC container are called beans. A bean is an object that is instantiated, assembled, and otherwise managed by a Spring IoC container. These beans are created with ...
Python | Program that matches a word containing ‘g’ followed by one or more e’s using regex
29 Dec, 2020 Prerequisites : Regular Expressions | Set 1, Set 2 Given a string, the task is to check if that string contains any g followed by one or more e’s in it, otherwise, print No match. Examples : Input : geeks for geeks Output : geeks geeks Input : graphic era Output : No match Approach : Firstly, ...
[ { "code": null, "e": 53, "s": 25, "text": "\n29 Dec, 2020" }, { "code": null, "e": 104, "s": 53, "text": "Prerequisites : Regular Expressions | Set 1, Set 2" }, { "code": null, "e": 233, "s": 104, "text": "Given a string, the task is to check if that string co...
Python – Replace delimiter
10 Jul, 2020 Given List of Strings and replacing delimiter, replace current delimiter in each string. Input : test_list = [“a, t”, “g, f, g”, “w, e”, “d, o”], repl_delim = ‘ ‘Output : [“a t”, “g f g”, “w e”, “d o”]Explanation : comma is replaced by empty spaces at each string. Input : test_list = [“g#f#g”], repl_delim ...
[ { "code": null, "e": 28, "s": 0, "text": "\n10 Jul, 2020" }, { "code": null, "e": 117, "s": 28, "text": "Given List of Strings and replacing delimiter, replace current delimiter in each string." }, { "code": null, "e": 293, "s": 117, "text": "Input : test_list...
Evaluate the Mathematical Expressions using Tkinter in Python
17 Feb, 2022 This article focuses on the evaluation of mathematical expression using the Tkinter and math packages in Python. Tkinter: Python Tkinter is a GUI programming package or built-in package. Tkinter provides the Tk GUI toolkit with a potent object-oriented interface. Python with Tkinter is the fastest and eas...
[ { "code": null, "e": 28, "s": 0, "text": "\n17 Feb, 2022" }, { "code": null, "e": 142, "s": 28, "text": "This article focuses on the evaluation of mathematical expression using the Tkinter and math packages in Python. " }, { "code": null, "e": 419, "s": 142, "...
set::emplace() in C++ STL
23 Jan, 2018 Sets are a type of associative containers in which each element has to be unique, because the value of the element identifies it. The value of the element cannot be modified once it is added to the set, though it is possible to remove and add the modified value of that element. This function is used to ins...
[ { "code": null, "e": 53, "s": 25, "text": "\n23 Jan, 2018" }, { "code": null, "e": 332, "s": 53, "text": "Sets are a type of associative containers in which each element has to be unique, because the value of the element identifies it. The value of the element cannot be modified ...
How to Change the Tkinter Label Font Size?
23 Dec, 2020 Tkinter Label is used to display one or more lines, it can also be used to display bitmap or images. In this article, we are going to change the font-size of the Label Widget. To create Label use following: Syntax: label = Label(parent, option, ...) Parameters:parent: Object of the widget that will display...
[ { "code": null, "e": 28, "s": 0, "text": "\n23 Dec, 2020" }, { "code": null, "e": 235, "s": 28, "text": "Tkinter Label is used to display one or more lines, it can also be used to display bitmap or images. In this article, we are going to change the font-size of the Label Widget....
Performing DataBase Operations in XAMPP
26 Nov, 2020 XAMPP is a cross-platform web server used to develop and test programs on a local server. It is developed and managed by Apache Friends and is open-source. It has an Apache HTTP Server, MariaDB, and interpreter for 11 different programming languages like Perl and PHP. XAMPP Stands for cross-platform, Apach...
[ { "code": null, "e": 28, "s": 0, "text": "\n26 Nov, 2020" }, { "code": null, "e": 360, "s": 28, "text": "XAMPP is a cross-platform web server used to develop and test programs on a local server. It is developed and managed by Apache Friends and is open-source. It has an Apache HT...
Program for Sum of the digits of a given number
10 Jun, 2022 Given a number, find sum of its digits. Examples : Input : n = 687 Output : 21 Input : n = 12 Output : 3 General Algorithm for sum of digits in a given number: Get the numberDeclare a variable to store the sum and set it to 0Repeat the next two steps till the number is not 0Get the rightmost digit of th...
[ { "code": null, "e": 52, "s": 24, "text": "\n10 Jun, 2022" }, { "code": null, "e": 92, "s": 52, "text": "Given a number, find sum of its digits." }, { "code": null, "e": 104, "s": 92, "text": "Examples : " }, { "code": null, "e": 159, "s": 104,...
Components of a URL
29 Jun, 2021 If you are SpongeBob then your URL is Bikini Bottom on the floor of the Pacific Ocean but if you’re not, your URL is definitely the address of the house you live in! URL stands for Uniform Resource Locator. For a website, a URL is basically where the website lives online and it helps visitors to identify t...
[ { "code": null, "e": 53, "s": 25, "text": "\n29 Jun, 2021" }, { "code": null, "e": 418, "s": 53, "text": "If you are SpongeBob then your URL is Bikini Bottom on the floor of the Pacific Ocean but if you’re not, your URL is definitely the address of the house you live in! URL stan...
Java Program for Leaders in an array
13 Dec, 2021 Write a program to print all the LEADERS in the array. An element is leader if it is greater than all the elements to its right side. And the rightmost element is always a leader. For example int the array {16, 17, 4, 3, 5, 2}, leaders are 17, 5 and 2. Let the input array be arr[] and size of the array be ...
[ { "code": null, "e": 28, "s": 0, "text": "\n13 Dec, 2021" }, { "code": null, "e": 342, "s": 28, "text": "Write a program to print all the LEADERS in the array. An element is leader if it is greater than all the elements to its right side. And the rightmost element is always a lea...
Python | Substring removal in String list
30 Jan, 2020 While working with strings, one of the most used application is removing the part of string with another. Since string in itself is immutable, the knowledge of this utility in itself is quite useful. Here the removing of a substring in list of string is performed. Let’s discuss certain ways in which this c...
[ { "code": null, "e": 28, "s": 0, "text": "\n30 Jan, 2020" }, { "code": null, "e": 352, "s": 28, "text": "While working with strings, one of the most used application is removing the part of string with another. Since string in itself is immutable, the knowledge of this utility in...
Coding-Decoding
30 Sep, 2020 CODING-DECODING is an important part of Logical reasoning section in all aptitude related examinations. Coding is a process used to encrypt a word, a number in a particular code or pattern based on some set of rules. Decoding is a process to decrypt the pattern into its original form from the given codes. ...
[ { "code": null, "e": 52, "s": 24, "text": "\n30 Sep, 2020" }, { "code": null, "e": 360, "s": 52, "text": "CODING-DECODING is an important part of Logical reasoning section in all aptitude related examinations. Coding is a process used to encrypt a word, a number in a particular c...
Ellipsis in C++ with Examples
19 Aug, 2020 Ellipsis in C++ allows the function to accept an indeterminate number of arguments. It is also known as the variable argument list. Ellipsis tells the compiler to not check the type and number of parameters the function should accept which allows the user to pass the variable argument list. By default, fun...
[ { "code": null, "e": 54, "s": 26, "text": "\n19 Aug, 2020" }, { "code": null, "e": 507, "s": 54, "text": "Ellipsis in C++ allows the function to accept an indeterminate number of arguments. It is also known as the variable argument list. Ellipsis tells the compiler to not check t...
Get specific elements from embedded array in MongoDB?
To get specific elements, use $match with dot notation. Let us create a collection with documents − > db.demo641.insert( ... { ... ProductId:101, ... "ProductInformation": ... ( [ ... { ... ProductName:"Product-1", ... "ProductPrice":1000 ....
[ { "code": null, "e": 1287, "s": 1187, "text": "To get specific elements, use $match with dot notation. Let us create a collection with documents −" }, { "code": null, "e": 1905, "s": 1287, "text": "> db.demo641.insert(\n... {\n... ProductId:101,\n... \"ProductInfor...
Python Seaborn Tutorial
02 Mar, 2022 Seaborn is a library mostly used for statistical plotting in Python. It is built on top of Matplotlib and provides beautiful default styles and color palettes to make statistical plots more attractive. In this tutorial, we will learn about Python Seaborn from basics to advance using a huge dataset of seabo...
[ { "code": null, "e": 28, "s": 0, "text": "\n02 Mar, 2022" }, { "code": null, "e": 230, "s": 28, "text": "Seaborn is a library mostly used for statistical plotting in Python. It is built on top of Matplotlib and provides beautiful default styles and color palettes to make statisti...
Decimal Equivalent of Binary Linked List
01 Jul, 2022 Given a singly linked list of 0s and 1s find its decimal equivalent. Input : 0->0->0->1->1->0->0->1->0 Output : 50 Input : 1->0->0 Output : 4 The decimal value of an empty linked list is considered as 0. Initialize the result as 0. Traverse the linked list and for each node, multiply the ...
[ { "code": null, "e": 52, "s": 24, "text": "\n01 Jul, 2022" }, { "code": null, "e": 121, "s": 52, "text": "Given a singly linked list of 0s and 1s find its decimal equivalent." }, { "code": null, "e": 212, "s": 121, "text": " Input : 0->0->0->1->1->0->0->1->...
Python | Pandas dataframe.memory_usage()
22 Jun, 2021 Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes importing and analyzing data much easier.Pandas dataframe.memory_usage() function return the memory usage of each column in bytes. The ...
[ { "code": null, "e": 28, "s": 0, "text": "\n22 Jun, 2021" }, { "code": null, "e": 487, "s": 28, "text": "Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes imp...
Loop Vectorization in Julia
10 May, 2020 Vectorization is used to speed up the code without using loop. Using such a function can help in minimizing the running time of code efficiently. There are two meanings of the word vectorization in the high-level languages, and they refer to different things.When we talk about vectorized code in Python/Num...
[ { "code": null, "e": 28, "s": 0, "text": "\n10 May, 2020" }, { "code": null, "e": 407, "s": 28, "text": "Vectorization is used to speed up the code without using loop. Using such a function can help in minimizing the running time of code efficiently. There are two meanings of the...
Third Normal Form (3NF)
31 Jul, 2019 Although Second Normal Form (2NF) relations have less redundancy than those in 1NF, they may still suffer from update anomalies. If we update only one tuple and not the other, the database would be in an inconsistent state. This update anomaly is caused by a transitive dependency. We need to remove such de...
[ { "code": null, "e": 52, "s": 24, "text": "\n31 Jul, 2019" }, { "code": null, "e": 413, "s": 52, "text": "Although Second Normal Form (2NF) relations have less redundancy than those in 1NF, they may still suffer from update anomalies. If we update only one tuple and not the other...
How to Make Changes to The Application Deployed on Heroku ?
11 Jul, 2022 Many of the times we need to make changes to our deployed project for some reason. Either we want to have a new version of the project, add new features to the project, remove a bug, or for some other reasons. If your project is deployed on Heroku Cloud Platform, you can easily make your changes using the ...
[ { "code": null, "e": 53, "s": 25, "text": "\n11 Jul, 2022" }, { "code": null, "e": 563, "s": 53, "text": "Many of the times we need to make changes to our deployed project for some reason. Either we want to have a new version of the project, add new features to the project, remov...
Stream In Java
09 Oct, 2019 Introduced in Java 8, the Stream API is used to process collections of objects. A stream is a sequence of objects that supports various methods which can be pipelined to produce the desired result.The features of Java stream are – A stream is not a data structure instead it takes input from the Collections...
[ { "code": null, "e": 54, "s": 26, "text": "\n09 Oct, 2019" }, { "code": null, "e": 285, "s": 54, "text": "Introduced in Java 8, the Stream API is used to process collections of objects. A stream is a sequence of objects that supports various methods which can be pipelined to prod...
Python program to convert float decimal to Octal number
30 Jun, 2020 Python doesn’t support any inbuilt function to easily convert floating point decimal numbers to octal representation. Let’s do this manually. Approach : To convert a decimal number having fractional part into octal, first convert the integer part into octal form and then fractional part into octal form and...
[ { "code": null, "e": 28, "s": 0, "text": "\n30 Jun, 2020" }, { "code": null, "e": 839, "s": 28, "text": "Python doesn’t support any inbuilt function to easily convert floating point decimal numbers to octal representation. Let’s do this manually. Approach : To convert a decimal n...
LiveData in Android Architecture Components
21 Sep, 2021 LiveData is one of the android architecture components. LiveData is an observable data holder class. What is the meaning of observable here the observable means live data can be observed by other components like activity and fragments (Ui Controller). The most important thing about LiveData is it has the k...
[ { "code": null, "e": 28, "s": 0, "text": "\n21 Sep, 2021" }, { "code": null, "e": 1053, "s": 28, "text": "LiveData is one of the android architecture components. LiveData is an observable data holder class. What is the meaning of observable here the observable means live data can...
Minimum cost to fill given weight in a bag
03 Jun, 2022 You are given a bag of size W kg and you are provided costs of packets different weights of oranges in array cost[] where cost[i] is basically the cost of ‘i’ kg packet of oranges. Where cost[i] = -1 means that ‘i’ kg packet of orange is unavailableFind the minimum total cost to buy exactly W kg oranges an...
[ { "code": null, "e": 54, "s": 26, "text": "\n03 Jun, 2022" }, { "code": null, "e": 543, "s": 54, "text": "You are given a bag of size W kg and you are provided costs of packets different weights of oranges in array cost[] where cost[i] is basically the cost of ‘i’ kg packet of or...
Function Annotations in Python - GeeksforGeeks
10 May, 2019 Basic Terminology PEP: PEP stands for Python Enhancement Proposal. It is a design document that describes new features for Python or its processes or environment. It also provides information to the python community.PEP is a primary mechanism for proposing major new features, for example – Python Web Serve...
[ { "code": null, "e": 24097, "s": 24069, "text": "\n10 May, 2019" }, { "code": null, "e": 24115, "s": 24097, "text": "Basic Terminology" }, { "code": null, "e": 24549, "s": 24115, "text": "PEP: PEP stands for Python Enhancement Proposal. It is a design document...
SQL Tryit Editor v1.6
SELECT * FROM Customers ORDER BY CustomerName DESC; ​ Edit the SQL Statement, and click "Run SQL" to see the result. This SQL-Statement is not supported in the WebSQL Database. The example still works, because it uses a modified version of SQL. Your browser does not support WebSQL. Your are now using a light-version of...
[ { "code": null, "e": 24, "s": 0, "text": "SELECT * FROM Customers" }, { "code": null, "e": 52, "s": 24, "text": "ORDER BY CustomerName DESC;" }, { "code": null, "e": 54, "s": 52, "text": "​" }, { "code": null, "e": 117, "s": 54, "text": "Ed...
How do I get the creation date of a MySQL table?
To get the creation date of MySQL table, use the information_schema. The syntax is as follows − SELECT create_time FROM INFORMATION_SCHEMA.TABLES WHERE table_schema = 'yourDatabaseName’ AND table_name = 'yourTableName'; Apply the above syntax for your database and the table name. Here I am using the database ‘bus...
[ { "code": null, "e": 1158, "s": 1062, "text": "To get the creation date of MySQL table, use the information_schema. The syntax is as follows −" }, { "code": null, "e": 1288, "s": 1158, "text": "SELECT create_time FROM INFORMATION_SCHEMA.TABLES\n WHERE table_schema = 'yourDataba...
Find all distinct subset (or subsequence) sums of an array - GeeksforGeeks
19 Apr, 2022 Given a set of integers, find a distinct sum that can be generated from the subsets of the given sets and print them in increasing order. It is given that sum of array elements is small. Examples: Input : arr[] = {1, 2, 3} Output : 0 1 2 3 4 5 6 Distinct subsets of given set are {}, {1}, {2}, {3}, {1,2}...
[ { "code": null, "e": 24601, "s": 24573, "text": "\n19 Apr, 2022" }, { "code": null, "e": 24788, "s": 24601, "text": "Given a set of integers, find a distinct sum that can be generated from the subsets of the given sets and print them in increasing order. It is given that sum of a...
Unary operators in C/C++
Here we will see what are the unary operators in C / C++. Unary operator is operators that act upon a single operand to produce a new value. The unary operators are as follows. These operators have right-to-left associativity. Unary expressions generally involve syntax that precedes a postfix or primary expression Let'...
[ { "code": null, "e": 1239, "s": 1062, "text": "Here we will see what are the unary operators in C / C++. Unary operator is operators that act upon a single operand to produce a new value. The unary operators are as follows." }, { "code": null, "e": 1378, "s": 1239, "text": "These...
Perl - Coding Standard
Each programmer will, of course, have his or her own preferences in regards to formatting, but there are some general guidelines that will make your programs easier to read, understand, and maintain. The most important thing is to run your programs under the -w flag at all times. You may turn it off explicitly for part...
[ { "code": null, "e": 2420, "s": 2220, "text": "Each programmer will, of course, have his or her own preferences in regards to formatting, but there are some general guidelines that will make your programs easier to read, understand, and maintain." }, { "code": null, "e": 2768, "s": 2...
Explain the basic structure of a program in Java?
A typical structure of a Java program contains the following elements Package declaration Import statements Comments Class definition Class variables, Local variables Methods/Behaviors A class in Java can be placed in different directories/packages based on the module they are used. For all the classes that belong to a...
[ { "code": null, "e": 1132, "s": 1062, "text": "A typical structure of a Java program contains the following elements" }, { "code": null, "e": 1152, "s": 1132, "text": "Package declaration" }, { "code": null, "e": 1170, "s": 1152, "text": "Import statements" ...
Preview an image before it is uploaded in JavaScript
For security reasons browsers do not allow accessing the path of the image file selected via an input, i.e.JavaScript in browsers has no access to the File System. Therefore, our task is to preview the image file selected via the input before we send it to any server or anywhere else. WE can use the createObjectURL() f...
[ { "code": null, "e": 1348, "s": 1062, "text": "For security reasons browsers do not allow accessing the path of the image file selected via an input, i.e.JavaScript in browsers has no access to the File System. Therefore, our task is to preview the image file selected via the input before we send it...
Creating A Time Series Plot With Seaborn And Pandas - GeeksforGeeks
11 Dec, 2020 In this article, we will learn how to create A Time Series Plot With Seaborn And Pandas. Let’s discuss some concepts : Pandas is an open-source library that’s built on top of NumPy library. It’s a Python package that gives various data structures and operations for manipulating numerical data and statistic...
[ { "code": null, "e": 26762, "s": 26734, "text": "\n11 Dec, 2020" }, { "code": null, "e": 26881, "s": 26762, "text": "In this article, we will learn how to create A Time Series Plot With Seaborn And Pandas. Let’s discuss some concepts :" }, { "code": null, "e": 27203, ...
How do I connect to a Wi-Fi network on Android programmatically using Kotlin?
This example demonstrates how to connect to a Wi-Fi network on Android programmatically using Kotlin. Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project. Step 2 − Add the following code to res/layout/activity_main.xml. <?xml version="1.0" enco...
[ { "code": null, "e": 1164, "s": 1062, "text": "This example demonstrates how to connect to a Wi-Fi network on Android programmatically using Kotlin." }, { "code": null, "e": 1293, "s": 1164, "text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fi...
Check if two arrays are equal or not - GeeksforGeeks
12 Apr, 2022 Given two given arrays of equal length, the task is to find if given arrays are equal or not. Two arrays are said to be equal if both of them contain the same set of elements, arrangements (or permutation) of elements may be different though. Note: If there are repetitions, then counts of repeated elements...
[ { "code": null, "e": 24478, "s": 24450, "text": "\n12 Apr, 2022" }, { "code": null, "e": 24721, "s": 24478, "text": "Given two given arrays of equal length, the task is to find if given arrays are equal or not. Two arrays are said to be equal if both of them contain the same set ...
Gson - Serializing Inner Classes
In this chapter, we will explain serialization/deserialization of classes having inner classes. Student student = new Student(); student.setRollNo(1); Student.Name name = student.new Name(); name.firstName = "Mahesh"; name.lastName = "Kumar"; student.setName(name); //serialize inner class object String nameStri...
[ { "code": null, "e": 2028, "s": 1932, "text": "In this chapter, we will explain serialization/deserialization of classes having inner classes." }, { "code": null, "e": 2440, "s": 2028, "text": "Student student = new Student(); \nstudent.setRollNo(1); \nStudent.Name name = student...
Java Examples - Calculating Fibonacci Series
How to use method for calculating Fibonacci series? This example shows the way of using method for calculating Fibonacci Series upto numbers. public class MainClass { public static long fibonacci(long number) { if ((number == 0) || (number == 1)) return number; else return fibonacci(number - 1) + fibon...
[ { "code": null, "e": 2121, "s": 2068, "text": "How to use method for calculating Fibonacci series?" }, { "code": null, "e": 2212, "s": 2121, "text": "This example shows the way of using method for calculating Fibonacci Series upto numbers." }, { "code": null, "e": 2...
BigInteger class in Java
The java.math.BigInteger class provides operations analogs to all of Java's primitive integer operators and for all relevant methods from java.lang.Math. It also provides operations for modular arithmetic, GCD calculation, primality testing, prime generation, bit manipulation, and a few other miscellaneous operations. ...
[ { "code": null, "e": 1216, "s": 1062, "text": "The java.math.BigInteger class provides operations analogs to all of Java's primitive integer operators and for all relevant methods from java.lang.Math." }, { "code": null, "e": 1468, "s": 1216, "text": "It also provides operations ...
C# | Array.FindAll() Method - GeeksforGeeks
06 Oct, 2021 This method is used to retrieve all the elements that match the conditions defined by the specified predicate.Syntax: public static T[] FindAll (T[] array, Predicate match); Here, T is the type of element of the array.Parameters: array: It is the one-dimensional, zero-based array to search.match: It is...
[ { "code": null, "e": 25875, "s": 25847, "text": "\n06 Oct, 2021" }, { "code": null, "e": 25995, "s": 25875, "text": "This method is used to retrieve all the elements that match the conditions defined by the specified predicate.Syntax: " }, { "code": null, "e": 26051,...
Cordova - Battery Status
This Cordova plugin is used for monitoring device's battery status. The plugin will monitor every change that happens to device's battery. To install this plugin, we need to open the command prompt window and run the following code. C:\Users\username\Desktop\CordovaProject>cordova plugin add cordova-pluginbattery-statu...
[ { "code": null, "e": 2319, "s": 2180, "text": "This Cordova plugin is used for monitoring device's battery status. The plugin will monitor every change that happens to device's battery." }, { "code": null, "e": 2413, "s": 2319, "text": "To install this plugin, we need to open the...
How to return multiple values from function in PHP? - GeeksforGeeks
10 Feb, 2022 PHP doesn’t support to return multiple values in a function. Inside a function when the first return statement is executed, it will direct control back to the calling function and second return statement will never get executed. However, there are ways to work around this limitation. The multiple values ca...
[ { "code": null, "e": 25885, "s": 25857, "text": "\n10 Feb, 2022" }, { "code": null, "e": 26415, "s": 25885, "text": "PHP doesn’t support to return multiple values in a function. Inside a function when the first return statement is executed, it will direct control back to the call...
How to fire jQuery events with setTimeout?
The jQuery setTimeout() method is used to set an interval for events to fire. Here, we will set an interval of 3 seconds for an alert box to load using jQuery events: Live Demo <!DOCTYPE html> <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <script> $(document).rea...
[ { "code": null, "e": 1140, "s": 1062, "text": "The jQuery setTimeout() method is used to set an interval for events to fire." }, { "code": null, "e": 1229, "s": 1140, "text": "Here, we will set an interval of 3 seconds for an alert box to load using jQuery events:" }, { "...
Priority Queues with C#
A priority queue is held information with a priority value. It is an extension of queue. The item with the highest property is removed first when you try to eliminate an item from a priority queue. Let us see how to set priority queue − public class MyPriorityQueue <T> where T : IComparable <T> { } Now let us add an i...
[ { "code": null, "e": 1151, "s": 1062, "text": "A priority queue is held information with a priority value. It is an extension of queue." }, { "code": null, "e": 1260, "s": 1151, "text": "The item with the highest property is removed first when you try to eliminate an item from a ...
How to get protocol, domain and port from URL using JavaScript ? - GeeksforGeeks
30 May, 2019 The protocol, domain, and port of the current page can be found by two methods: Method 1: Using location.protocol, location.hostname, location.port methods: The location interface has various methods that can be used to return the required properties. The location.protocol property is used to return the pr...
[ { "code": null, "e": 26383, "s": 26355, "text": "\n30 May, 2019" }, { "code": null, "e": 26463, "s": 26383, "text": "The protocol, domain, and port of the current page can be found by two methods:" }, { "code": null, "e": 26635, "s": 26463, "text": "Method 1: ...
How to embed tables in New Google Sites ? - GeeksforGeeks
10 Sep, 2020 Sometimes, we have to display some data in a systematic manner, to do so we use tables. To embed the table in Google sites follow the steps: Select embed option from the insert panel and then go to embed code division of the dialogue box appeared. Write your iframe code in the space provided. To insert a b...
[ { "code": null, "e": 26245, "s": 26217, "text": "\n10 Sep, 2020" }, { "code": null, "e": 26386, "s": 26245, "text": "Sometimes, we have to display some data in a systematic manner, to do so we use tables. To embed the table in Google sites follow the steps:" }, { "code": ...
How To Generate SSH Key With ssh-keygen In Linux? - GeeksforGeeks
30 Jun, 2021 Secure Shell(SSH) is a cryptographic network protocol used for operating remote services securely. It is used for remote operation of devices on secure channels using a client-server architecture that generally operates on Port 22. SSH is the successor of Telnet. SSH uses public and private keys to validat...
[ { "code": null, "e": 26307, "s": 26279, "text": "\n30 Jun, 2021" }, { "code": null, "e": 26688, "s": 26307, "text": "Secure Shell(SSH) is a cryptographic network protocol used for operating remote services securely. It is used for remote operation of devices on secure channels us...
Find if a degree sequence can form a simple graph | Havel-Hakimi Algorithm - GeeksforGeeks
25 Aug, 2021 Given a sequence of non-negative integers arr[], the task is to check if there exists a simple graph corresponding to this degree sequence. Note that a simple graph is a graph with no self-loops and parallel edges. Examples: Input: arr[] = {3, 3, 3, 3} Output: Yes This is actually a complete graph(K4) Inp...
[ { "code": null, "e": 25031, "s": 25003, "text": "\n25 Aug, 2021" }, { "code": null, "e": 25246, "s": 25031, "text": "Given a sequence of non-negative integers arr[], the task is to check if there exists a simple graph corresponding to this degree sequence. Note that a simple grap...
Find a peak element in a 2D array - GeeksforGeeks
29 Apr, 2021 An element is a peak element if it is greater than or equal to its four neighbors, left, right, top and bottom. For example neighbors for A[i][j] are A[i-1][j], A[i+1][j], A[i][j-1] and A[i][j+1]. For corner elements, missing neighbors are considered of negative infinite value.Examples: Input : 10 20 15 ...
[ { "code": null, "e": 25146, "s": 25118, "text": "\n29 Apr, 2021" }, { "code": null, "e": 25436, "s": 25146, "text": "An element is a peak element if it is greater than or equal to its four neighbors, left, right, top and bottom. For example neighbors for A[i][j] are A[i-1][j], A[...
Python | Column deletion from list of lists - GeeksforGeeks
26 Feb, 2019 The problem of removing a row from a list is quite simple and we just need to pop a list out of list of lists. But there can be a utility where we need to delete a column i.e particular index element of each of the list. This is problem that can occur if we store any database data into containers. Let’s di...
[ { "code": null, "e": 25048, "s": 25020, "text": "\n26 Feb, 2019" }, { "code": null, "e": 25406, "s": 25048, "text": "The problem of removing a row from a list is quite simple and we just need to pop a list out of list of lists. But there can be a utility where we need to delete a...
Building a Naive Bayes Machine Learning Model to Classify Text | by Aden Haussmann | Towards Data Science
Natural Language Processing (NLP) is an extremely exciting field. It lies at the confluence of computer science, linguistics and artificial intelligence, and is concerned with the interaction between human language and computers. More specifically: its goal is to understand how to program computers to understand and in...
[ { "code": null, "e": 522, "s": 172, "text": "Natural Language Processing (NLP) is an extremely exciting field. It lies at the confluence of computer science, linguistics and artificial intelligence, and is concerned with the interaction between human language and computers. More specifically: its go...
Find if a string is interleaved of two other strings | DP-33 - GeeksforGeeks
29 Mar, 2022 Given three strings A, B and C. Write a function that checks whether C is an interleaving of A and B. C is said to be interleaving A and B, if it contains all and only characters of A and B and order of all characters in individual strings is preserved. Example: Input: strings: "XXXXZY", "XXY", "XXZ" Out...
[ { "code": null, "e": 24680, "s": 24652, "text": "\n29 Mar, 2022" }, { "code": null, "e": 24935, "s": 24680, "text": "Given three strings A, B and C. Write a function that checks whether C is an interleaving of A and B. C is said to be interleaving A and B, if it contains all and ...
Program to print the pattern 1020304017018019020 **50607014015016 ****809012013 ******10011... - GeeksforGeeks
21 May, 2021 Given an integer N, the task is to print the pattern below for the given value of N. For N = 5, below is the given pattern: Examples: Input: N = 4 Output: 1020304017018019020 **50607014015016 ****809012013 ******10011 Input: N = 3 Output: 10203010011012 **4050809 ****607 Approach: The idea to unders...
[ { "code": null, "e": 26557, "s": 26529, "text": "\n21 May, 2021" }, { "code": null, "e": 26644, "s": 26557, "text": "Given an integer N, the task is to print the pattern below for the given value of N. " }, { "code": null, "e": 26685, "s": 26644, "text": "For...
X of a Kind in a Deck of Cards in C++
Suppose we have a deck of cards, each card has an integer written on it. We have to check whether we can choose X >= 2 such that it is possible to split the entire deck into 1 or more groups of cards, where the following condition satisfies: Each group has exactly X number of cards. All of the cards in each group have ...
[ { "code": null, "e": 1399, "s": 1062, "text": "Suppose we have a deck of cards, each card has an integer written on it. We have to check whether we can choose X >= 2 such that it is possible to split the entire deck into 1 or more groups of cards, where the following condition satisfies: Each group ...
Microsoft Azure – Resizing Virtual Machine Using PowerShell Script
16 Dec, 2021 In this article, we will look into the process of resizing azure VMs at once using the Azure PowerShell automation script in the Azure portal by using the cloud shell. Resizing Multiple VMs at once in a follow for select subscription Saves the time of the User Simplifying the Actions by Automating the proc...
[ { "code": null, "e": 28, "s": 0, "text": "\n16 Dec, 2021" }, { "code": null, "e": 196, "s": 28, "text": "In this article, we will look into the process of resizing azure VMs at once using the Azure PowerShell automation script in the Azure portal by using the cloud shell." }, ...
TCP Client-Server Program to Check if a Given String is Palindrome
02 Aug, 2019 Prerequisites: Socket Programming in C/C++, TCP and UDP server using select, UDP Server-Client implementation in C TCP Client-Server Implementation in C This article describes a Client and Server setup where a Client connects, sends a string to the server and the server shows the original string and sends ...
[ { "code": null, "e": 52, "s": 24, "text": "\n02 Aug, 2019" }, { "code": null, "e": 67, "s": 52, "text": "Prerequisites:" }, { "code": null, "e": 96, "s": 67, "text": "Socket Programming in C/C++," }, { "code": null, "e": 129, "s": 96, "text...
Python – Add Custom Column to Tuple list
10 Jun, 2020 Sometimes, while working with Python records, we can have a problem in which we need to add custom column to tuples list. This kind of problem can have application in data domains such as web development. Lets discuss certain ways in which this task can be performed. Input :test_list = [(3, ), (7, ), (2, )...
[ { "code": null, "e": 28, "s": 0, "text": "\n10 Jun, 2020" }, { "code": null, "e": 296, "s": 28, "text": "Sometimes, while working with Python records, we can have a problem in which we need to add custom column to tuples list. This kind of problem can have application in data dom...
String Class stripTrailing() Method in Java with Examples
02 Feb, 2021 This method is used to strip trailing whitespaces from the string i.e stripTrailing() method removes all the whitespaces only at the ending of the string. Example: Input: String name = " kapil "; System.out.println("#" + name + "#); System.out.println("#" + name.stripLeading()); Output: # kapil ...
[ { "code": null, "e": 28, "s": 0, "text": "\n02 Feb, 2021" }, { "code": null, "e": 184, "s": 28, "text": "This method is used to strip trailing whitespaces from the string i.e stripTrailing() method removes all the whitespaces only at the ending of the string. " }, { "code...
GATE | GATE CS 2019 | Question 28
07 Sep, 2021 Consider the following given grammar: S → Aa A → BD B → b|ε D → d|ε Let a, b, d and $ be indexed as follows:Compute the FOLLOW set of the non-terminal B and write the index values for the symbols in the FOLLOW set in the descending order. (For example, if the FOLLOW set is {a, b, d, $}, then the answer sh...
[ { "code": null, "e": 28, "s": 0, "text": "\n07 Sep, 2021" }, { "code": null, "e": 66, "s": 28, "text": "Consider the following given grammar:" }, { "code": null, "e": 97, "s": 66, "text": "S → Aa\nA → BD\nB → b|ε\nD → d|ε " }, { "code": null, "e": ...
Split the array elements into strictly increasing and decreasing sequence
21 Jun, 2022 Given an array of N elements. The task is to split the elements into two arrays say a1[] and a2[] such that one contains strictly increasing elements and the other contains strictly decreasing elements and a1.size() + a2.size() = a.size(). If it is not possible to do so, print -1 or else print both the arr...
[ { "code": null, "e": 54, "s": 26, "text": "\n21 Jun, 2022" }, { "code": null, "e": 367, "s": 54, "text": "Given an array of N elements. The task is to split the elements into two arrays say a1[] and a2[] such that one contains strictly increasing elements and the other contains s...
Python | Pandas Series.to_dict()
05 Feb, 2019 Pandas series is a One-dimensional ndarray with axis labels. The labels need not be unique but must be a hashable type. The object supports both integer- and label-based indexing and provides a host of methods for performing operations involving the index. Pandas Series.to_dict() function is used to conver...
[ { "code": null, "e": 28, "s": 0, "text": "\n05 Feb, 2019" }, { "code": null, "e": 285, "s": 28, "text": "Pandas series is a One-dimensional ndarray with axis labels. The labels need not be unique but must be a hashable type. The object supports both integer- and label-based index...