This file contains 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
option = int(input("What you want to run \n1) insert a record \n2) remove a record \n3) check for array is underflow or overflow \n4) search a record \n5) sort records \nPlease choose any one option : ")) | |
def insertRecord(): | |
records = [] | |
noOfRecords = int(input("How many numbers you want to insert ? ")) | |
This file contains 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
let str = `BODY[5]/DIV[2]/DIV[0]/DIV[0]/DIV[0]`; | |
let indexes = []; | |
let elems = str.split("/"); | |
let temp_index = []; | |
Array.from(elems).forEach((elem)=>{ | |
let s = elem.indexOf(`[`) + 1; | |
let e = elem.length - 1; | |
temp_index.push(parseInt(elem.substr(s,e))); |
This file contains 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
/* | |
* To change this license header, choose License Headers in Project Properties. | |
* To change this template file, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package bebooked; | |
/** | |
* | |
* @author Hasnain karim |
This file contains 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
package homework; | |
public class Homework { | |
public static void main(String[] args) { | |
//Ceating Objects | |
AutoCopy ac = new AutoCopy("h26k2",262); |
This file contains 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
package work; | |
import java.util.Scanner; | |
public class Work { | |
public static void main(String[] args) { | |
Scanner input = new Scanner(System.in); | |
System.out.println("Enter num1 : "); |
This file contains 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
Scanner input = new Scanner(System.in); | |
int num1 , num2 , nextNum , count; | |
num1 = 0; | |
num2 = 1; | |
System.out.println("How many number of fibonacii series you want ?"); | |
count = input.nextInt(); | |
System.out.println("================== FIBONACCI SERIES IS ============="); |
This file contains 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
package linearalgebra; | |
import java.util.Scanner; | |
public class VectorSpace { | |
public VectorSpace(){ | |
Scanner input = new Scanner(System.in); | |
System.out.println("============== Vector Space =========="); |
This file contains 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
let carouselElem = document.querySelectorAll('.carousel.carousel-slider'); | |
M.Carousel.init(carouselElem,{ | |
indicators : true, | |
fullWidth : true, | |
duration : 150 | |
}); | |
setTimeout(()=>{ |
This file contains 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
// for redirect to a page | |
this.props.history.push({ | |
pathname : '/signin' | |
}) | |
//for redirect to a page with query parameters | |
this.prosp.history.push({ | |
pathname: '/events', |
NewerOlder