Exampleimport java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.math.BigInteger; import java.util.StringTokenizer;public class FindBiggestNumber {static BigInteger getBiggestNum (int[] numbers) { int n = … [Read more...] about Algorithms: Find the Biggest Number in an Array
Algorithms: find the maximum pairwise product
Let's find out the maximum product of two biggest numbers in a given array. We will implement this in Java. Before that you need to understand how to find out biggest number in a given array, Please refer to the blog post … [Read more...] about Algorithms: find the maximum pairwise product
Read File: Go lang
© clipartmax.comIn this blog post, I will show you how to read a file in golang using bufio. Create a file with name test.txt and add the below contents,ken thompson alan donovan brian kernighanFile Read Examplepackage mainimport ( "fmt" "os" "bufio" "strings" )func check(e … [Read more...] about Read File: Go lang
Composite types: Structs
©techort.comStructsStruct is a collection of fields.Syntaxtype User struct { username string email string phone string }var u1 UserInitializing StructsStruct can be initialized using new keyword which will initialize fields with 0or in below manner, … [Read more...] about Composite types: Structs
Emacs: Install emacs and slime
Install emacs on ubuntu using the command below,apt-get update install emacsLet's install slime using quicklisp. The complete guide on installing quicklisp can be found here. After you are done with the installation of quicklisp, its time to install slime.sbcl(ql:quickload … [Read more...] about Emacs: Install emacs and slime
Composite types: Slice
SlicesA Slice is like a dynamically-sized array. A slice type is written []T,where elements has type T. So it's like an array without size defined.A Slice is a light weight data structure that gives access to sequence of elements of an array, also known as slice's underlying … [Read more...] about Composite types: Slice
How to configure mysql with matlab
This blog post, I will show you how to setup mysql with JDBC drivers in matlabStep-1: Add JDBC driver to the MATLAB java classpath using javaaddpathFirst of all, download mysql-jdbc jar file and save it in some desired location, I am on ubuntu and I saved it under /usr/local/. I use … [Read more...] about How to configure mysql with matlab
How to install apache airflow on ubuntu
In this blog post, I will show you how to install apache airflow on ubuntu,IntroductionAccording to Apache’s official web site, Apache airflow is a platform for programmatically author schedule and monitor workflows. It is one of the best workflow management system.Airflow was … [Read more...] about How to install apache airflow on ubuntu