Here is the Java code from the blog post:
Code:
java
public static int longestCommonSubsequence(String X, String Y) {
int m = X.length();
int n
java
public static int longestCommonSubsequence(String X, String Y) {
int m = X.length();
int n
def gcd(x, y):
while y:
x, y = y, x % y
return x
print(gcd(10, 15))
import java.util.Arrays;
import java.util.HashSet;
public class RemoveDuplicates {
public static void main(String[] args) {
String[] array1 = {"ADAIR", "ADAM", "ADAMINA", "ADDISON", "ADDY", "ADELLE", "ADEN",
java
class CricketTeam{
String name; //this is the complete name (inclusive of first and last name)
}
sql
SELECT SSN, SUM(amount) AS net_amount
FROM (
SELECT SSN,
CASE
WHEN tran_code = 'SSN' THEN amount
ELSE -amount
END AS amount
c.HTML(http.StatusOK, "static/templates/mytemplate.html", gin.H{
"name": "World",
})
Leave a comment: