Skip to content

Instantly share code, notes, and snippets.

View johirbuet's full-sized avatar
🎯
Focusing

Md Johirul Islam johirbuet

🎯
Focusing
  • Lowe's
  • Mooresville, NC
View GitHub Profile
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Let's assume that you combined the code from the previous 2 exercises
# with code from the lesson on how to build requests, and downloaded all the data locally.
# The files are in a directory "data", named after the carrier and airport:
# "{}-{}.html".format(carrier, airport), for example "FL-ATL.html".
# The table with flight info has a table class="dataTDRight".
# There are couple of helper functions to deal with the data files.
# Please do not change them for grading purposes.
# All your changes should be in the 'process_file' function
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Figures Quiz</title>
<!-- the next line loads the tests for the Udacity Feedback extension -->
<meta name="udacity-grader" content="http://udacity.github.io/fend/fend-refresh/lesson2/problem-set/figures/tests.json">
</head>
<body>
<!--
import json
from os.path import exists
from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium.common.exceptions import TimeoutException
class GoogleGroupsScraper(object):
""" A simple class to scrape a google group. """
import java.util.Map;
import java.util.Scanner;
import java.util.TreeMap;
public class UVA13088 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int T = sc.nextInt();
for(int t = 0;t < T;t++) {
String s = sc.next();
import java.util.Scanner;
import java.util.Stack;
public class UVA13055 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
Stack<String> stack = new Stack<>();
int T = Integer.parseInt(sc.nextLine());
for(int i = 0; i < T; i++) {
import java.util.Scanner;
public class UVA12992 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int T = sc.nextInt();
for(int t = 1; t <= T; t++) {
int N = sc.nextInt();
int r = (N - 1) * 2 + + 1 ;
System.out.println("Case #"+t+": "+r);
import java.util.Collections;
import java.util.PriorityQueue;
import java.util.Scanner;
public class UVA12541 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
PriorityQueue<Person> minheap = new PriorityQueue<>();
PriorityQueue<Person> maxheap = new PriorityQueue<>(Collections.reverseOrder());
int T = Integer.parseInt(sc.nextLine());
import java.util.Scanner;
public class UVA12149 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
while(sc.hasNextInt()) {
int n = sc.nextInt();
if(n == 0) {
break;
}
import java.util.Scanner;
public class UVA133 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
while(sc.hasNextInt()) {
int N = sc.nextInt();
int k =sc.nextInt();
int m = sc.nextInt();
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Scanner;
import java.util.Set;
public class UVA489 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
while(sc.hasNextLine()) {