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; | |
// Takes in a String, and returns all ecryptions: | |
// i.e. if 'home' is our input string, encryptions would be: | |
// 4, 3e, h3, h2e, 2me, ho2, h1m1, (etc). | |
// No two numbers could be next to each other. | |
public class InterviewPractice | |
{ | |
public static void main(String[] args) |
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.ArrayList; | |
import java.util.HashMap; | |
import java.util.LinkedList; | |
import java.util.List; | |
import java.util.Map; | |
import java.util.Scanner; | |
public class FacebookQuestion { | |
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
using System; | |
using System.Collections.Generic; | |
namespace InterviewPractice | |
{ | |
class MainClass | |
{ | |
static string[] dictionary = new string[] {"clam", "calm", "toss", "tussle", "tag", "a", "able", "albe", "loose", "losoe", "lsooe"}; | |
public static void Main (string[] args) |
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.HashMap; | |
import java.util.Map; | |
import java.util.Scanner; | |
/** | |
* Credit for Algorithm from top answer in: | |
* http://stackoverflow.com/questions/7116438/algorithms-question-flipping-columns | |
* | |
* This problem is given to interview candidates in the screening process | |
* for Palantir Technologies. I've seen it through several different |
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
/* | |
* CreditCard.cpp | |
* | |
* Created on: May 26, 2015 | |
* Author: Zak Taylor | |
*/ | |
//4388576018410707 - VALID | |
//4388576018402626 - INVALID | |
#include <iostream> |
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
#include <aJSON.h> | |
#include <avr/pgmspace.h> | |
#include <Roomba.h> | |
#include <SPI.h> | |
#include <WiFi.h> | |
#include <SPI.h> | |
#include "RestClient.h" | |
#define _GNU_SOURCE | |
#include <stdio.h> | |
#include <stdlib.h> |
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
#include <aJSON.h> | |
#include <avr/pgmspace.h> | |
#include <Roomba.h> | |
#include <SPI.h> | |
#include <WiFi.h> | |
#include <SPI.h> | |
#include "RestClient.h" | |
#define _GNU_SOURCE | |
#include <stdio.h> | |
#include <stdlib.h> |