This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//JAVA CODE TO FIND THE LONGEST COMMON SUBSEQUENCE | |
//MAHE IRAM KHAN | |
//18COB058 | |
public class LongestCommonSubsequence { | |
int lcs(char[] X, char[] Y, int p, int q) | |
{ | |
if (p == 0 || q == 0) | |
return 0; | |
if (X[p - 1] == Y[q - 1]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import sys | |
from datetime import datetime | |
HELP_MESSAGE = '''Usage :- | |
$ ./todo add "todo item" # Add a new todo | |
$ ./todo ls # Show remaining todos | |
$ ./todo del NUMBER # Delete a todo | |
$ ./todo done NUMBER # Complete a todo | |
$ ./todo help # Show usage | |
$ ./todo report # Statistics''' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Sample JS implementation of Todo CLI that you can attempt to port: | |
https://gist.github.com/jasim/99c7b54431c64c0502cfe6f677512a87 | |
*/ | |
/* Returns date with the format: 2021-02-04 */ | |
let getToday: unit => string = %raw(` | |
function() { | |
let date = new Date(); | |
return new Date(date.getTime() - (date.getTimezoneOffset() * 60000)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Square(props) { | |
return ( | |
<button className="square" onClick={props.onClick}> | |
{props.value} | |
</button> | |
); | |
} | |
class Board extends React.Component { | |
renderSquare(i) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Sample JS implementation of Todo CLI that you can attempt to port: | |
https://gist.github.com/jasim/99c7b54431c64c0502cfe6f677512a87 | |
*/ | |
/* Returns date with the format: 2021-02-04 */ | |
let getToday: unit => string = %raw(` | |
function() { | |
let date = new Date(); | |
return new Date(date.getTime() - (date.getTimezoneOffset() * 60000)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import tkinter as tk | |
from tkinter import * | |
import math | |
import numpy as np | |
import time | |
lines = [] | |
a = [] | |
const1 = 1000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Mahe Iram Khan | |
// 18 COB 058 | |
// GI 2028 | |
// Cousins of a node in a given binary tree | |
// Cousins are defined as children of a sibling node | |
#include <bits/stdc++.h> | |
using namespace std; | |
// Node struct |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Mahe Iram Khan | |
// 18 COB 058 | |
// GI 2028 | |
// Cousins of a node in a given binary tree | |
// Cousins are defined as children of a sibling node | |
#include <bits/stdc++.h> | |
using namespace std; | |
// Node struct |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import sys | |
from datetime import datetime | |
HELP_MESSAGE = """/ | |
Usage :- | |
$ ./todo add "todo item" # Add a new todo | |
$ ./todo ls # Show remaining todos | |
$ ./todo del NUMBER # Delete a todo | |
$ ./todo done NUMBER # Complete a todo | |
$ ./todo help # Show usage |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import sys | |
from datetime import datetime | |
HELP_MESSAGE = """/ | |
Usage :- | |
$ ./todo add "todo item" # Add a new todo | |
$ ./todo ls # Show remaining todos | |
$ ./todo del NUMBER # Delete a todo | |
$ ./todo done NUMBER # Complete a todo | |
$ ./todo help # Show usage |
OlderNewer