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
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++) { |
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
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(); |
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
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. """ |
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
<!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> | |
<!-- |
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
#!/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 |
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
/* | |
* Create a list that holds all of your cards | |
*/ | |
var cards = ["fa fa-diamond" , "fa fa-diamond", "fa fa-paper-plane-o", "fa fa-paper-plane-o", | |
"fa fa-anchor" , "fa fa-anchor" , "fa fa-bolt" , "fa fa-bolt", | |
"fa fa-cube" , "fa fa-cube" , "fa fa-leaf", "fa fa-leaf", | |
"fa fa-bicycle" , "fa fa-bicycle" , "fa fa-bomb" , "fa fa-bomb", |
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
projects.projects.forEach(function (project){ | |
$("#projects").append(HTMLprojectStart); | |
$(".project-entry:last").append(HTMLprojectTitle.replace("%data%", projects.projects[project].title), HTMLprojectDates.replace("%data%", projects.projects[project].dates)); | |
}); |
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
/* | |
* Programming Quiz: Make An Iterable Object | |
* | |
* Turn the `james` object into an iterable object. | |
* | |
* Each call to iterator.next should log out an object with the following info: | |
* - key: the key from the `james` object | |
* - value: the value of the key from the `james` object | |
* - done: true or false if there are more keys/values | |
* |
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
import java.util.*; | |
import java.lang.*; | |
import java.io.*; | |
class RecrusiveArrayPrint | |
{ | |
public static void main (String[] args) | |
{ | |
int [] a={1,2,3,4,5,6,7,8,9,10}; | |
printArray(a,0,a.length-1); |
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
import java.math.BigInteger; | |
import java.util.Scanner; | |
public class UVA10300 { | |
public static void main(String[] args) { | |
Scanner sc=new Scanner(System.in); | |
int T=sc.nextInt(); | |
while(T-->0) | |
{ | |
int f=sc.nextInt(); |