Written by Nathan Lilienthal or:
- nathanlil13
- nathanl
- nathan
- nate
- nathan.lilienthal
- lilienthal.nathan
public class PalindromeMaker { | |
public String make(String baseString) throws Exception{ | |
int[] hash= new int[26]; | |
for(int i=0;i<baseString.length();i++){ | |
char ch=baseString.charAt(i); | |
if(ch<'A' || ch>'Z') throw new Exception("Wrong Input"); | |
hash[ch-'A']++; | |
} | |
boolean check=false; | |
StringBuilder begin=new StringBuilder(); |
/** | |
* Generates number of random geolocation points given a center and a radius. | |
* @param {Object} center A JS object with lat and lng attributes. | |
* @param {number} radius Radius in meters. | |
* @param {number} count Number of points to generate. | |
* @return {array} Array of Objects with lat and lng attributes. | |
*/ | |
function generateRandomPoints(center, radius, count) { | |
var points = []; | |
for (var i=0; i<count; i++) { |
# custom/processors.py | |
from django.conf import settings | |
from django.core.files.storage import default_storage | |
try: | |
from PIL import Image | |
except ImportError: | |
import Image |
data:text/html, <style type="text/css">#e{position:absolute;top:0;right:0;bottom:0;left:0;}</style><div id="e"></div><script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("e");e.setTheme("ace/theme/monokai");e.getSession().setMode("ace/mode/ruby");</script> |
o o o | |
o x | |
o x x x | |
x o | |
x x x o | |
x | |
o o | |
o | |
A lot of math grad school is reading books and papers and trying to understand what's going on. The difficulty is that reading math is not like reading a mystery thriller, and it's not even like reading a history book or a New York Times article.
The main issue is that, by the time you get to the frontiers of math, the words to describe the concepts don't really exist yet. Communicating these ideas is a bit like trying to explain a vacuum cleaner to someone who has never seen one, except you're only allowed to use words that are four letters long or shorter.
What can you say?
buildings = [ | |
[1, 11, 5], | |
[2, 6, 7], | |
[3, 13, 9], | |
[12, 7, 16], | |
[14, 3, 25], | |
[19, 18, 22], | |
[23, 13, 29], | |
[24, 4, 28], | |
] |
.factory('TokenHandler', function() { | |
var tokenHandler = {}; | |
var token = "none"; | |
tokenHandler.set = function( newToken ) { | |
token = newToken; | |
}; | |
tokenHandler.get = function() { | |
return token; |
def fizzbuzz(n): | |
if n % 3 == 0 and n % 5 == 0: | |
return 'FizzBuzz' | |
elif n % 3 == 0: | |
return 'Fizz' | |
elif n % 5 == 0: | |
return 'Buzz' | |
else: | |
return str(n) |