Tutorial by Examples: st

The task is to find the length of the longest subsequence in a given array of integers such that all elements of the subsequence are sorted in ascending order. For example, the length of the longest increasing subsequence(LIS) for {15, 27, 14, 38, 26, 55, 46, 65, 85} is 6 and the longest increasing ...
Given a string what is the longest palindromic subsequence(LPS) of it? Let's take a string agbdba. The LPS of this string is abdba of length 5. Remember, since we're looking for subsequence, the characters need not to be continuous in the original string. The longest palindromic substring of the seq...
In order to search for packages in the databse, searching both in packages' names and descriptions: pacman -Ss string1 string2 ... To install a single package or list of packages (including dependencies), issue the following command: sudo pacman -S package_name1 package_name2 ... source
This Documentation is a small summary of the offical one Prerequisites Your PC must be running a 64-bit version of Windows 10 Anniversary Update build 14393 or later To find your PC's CPU architecture and Windows version/build number, open Settings>System>About. Look for the OS Build ...
Given coins of different denominations and a total, in how many ways can we combine these coins to get the total? Let's say we have coins = {1, 2, 3} and a total = 5, we can get the total in 5 ways: 1 1 1 1 1 1 1 1 2 1 1 3 1 2 2 2 3 The problem is closely related to knapsack problem. The o...
Given coins of different denominations and a total, how many coins do we need to combine to get the total if we use minimum number of coins? Let's say we have coins = {1, 5, 6, 8} and a total = 11, we can get the total using 2 coins which is {5, 6}. This is indeed the minimum number of coins require...
This tag is a duplicate of playframework. Please post any content that you would post here in that tag, with the version set to “2.0”
Using the library archive Download the JAR and add it to the classpath for your Java project Using a build tool If you are using a build tool like Maven or Gradle: Maven <dependency> <groupId>joda-time</groupId> <artifactId>joda-time</artifactId> ...
The official site of angular-ui-bootstrap is here. Follow the below instructions in order. The list of files that are to be downloaded is in this link Include all references in this order. angular.js angular-animate.js ui-bootstrap-tpls-2.2.0.js (Reference to UI Bootstrap ) angular-sanitiz...
Two-element tuples (,) is an example of a type that has a Bifunctor instance. instance Bifunctor (,) where bimap f g (x, y) = (f x, g y) bimap takes a pair of functions and applies them to the tuple's respective components. bimap (+ 2) (++ "nie") (3, "john") --> (5,...
If mapping covariantly over only the first argument, or only the second argument, is desired, then first or second ought to be used (in lieu of bimap). first :: Bifunctor f => (a -> c) -> f a b -> f c b first f = bimap f id second :: Bifunctor f => (b -> d) -> f a b -> f...
GridView definition on ASPX page As shown below, first column of grid is defined as a checkbox column, which is conditionally cleared as shown in further examples below (the header checkbox is only for selecting/un-selecting all rows on current page, but same can be extended for all on grid easily)...
Go to File > Settings > Keymap and select the Keymaps option from: Mac OS X Emacs Visual Studio Eclise Netbeans Jbuilder and others, to map the shortcuts to the wanted tool ones.
instanceof requires that the variable is of type any. This code (try it): class Pet { } class Dog extends Pet { bark() { console.log("woof"); } } class Cat extends Pet { purr() { console.log("meow"); } } function example(foo: any) { ...
This error message may be produced by the OpenSSH ssh client. It means that the TCP connection between the client and the server was closed by the server immediately after being accepted. This message generally indicates the SSH server has been configured not to accept connections from the client fo...
Detailed instructions on getting parse-server set up or installed.
Detailed instructions on getting seo set up or installed.
On Debian-based distributions (e.g. Ubuntu), follow the following steps. Get Bitcoin Package: apt-add-repository ppa:bitcoin/bitcoin Update: apt-get update Install: apt-get install bitcoind –y Reboot: reboot After rebooting confirm Bitcoin was installed by checking for the directory ~/.bitc...
Detailed instructions on getting tdd set up or installed.
<ul> <li *ngFor="let item of items">{{item.name}}</li> </ul>

Page 285 of 369