I hereby claim:
- I am j605 on github.
- I am j605 (https://keybase.io/j605) on keybase.
- I have a public key ASAhtF_xqwB0UAZOkW0NE6NMnuDGDGNZeUuVC8qvv_wIkQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
def change_base(n, b): | |
rem = '' | |
while n > 0: | |
rem += str((n % b)) | |
n /= b | |
return rem[::-1] | |
def pal_base(n): | |
base = 2 | |
while 1: |
def get_triangle_no(): | |
num = [1, 3] | |
i = 2 | |
while 1 > 0: | |
num.append(num[i - 1] + i + 1) | |
if num[i] > 500000000000000000000 and factors(num[i]) > 500: | |
return num[i] | |
i = i + 1 | |
def mark(numbers, p, N): |
COOKIELABS | |
Hack, Design, Innovate | |
Name: | |
Programming Languages known: | |
(List all of them along with the knowledge level as(Beginner/moderate/advanced)) | |
Would like to work on: JAVA/ C# | |
(Please choose one) |
Server Error in '/prm' Application. | |
ORA-12500: TNS:listener failed to start a dedicated server process | |
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. | |
Exception Details: System.Runtime.InteropServices.COMException: ORA-12500: TNS:listener failed to start a dedicated server process | |
Source Error: | |
Line 10: If studcn.State Then studcn.Close() | |
Line 11: On Error GoTo 0 |
[18:54] fredy ok | |
[18:56] fredy is this problem only at facebook page? | |
[18:57] Guest48295 no | |
[18:57] Guest48295 all pages | |
[18:57] Guest48295 like picture sharing sites | |
[18:57] Guest48295 google images | |
[18:57] Guest48295 and also games pages | |
[18:58] fredy could you provide a screenshot? | |
[18:59] fredy you can use http://imgur.com/ for uploading it | |
[18:59] Guest48295 wait |
#! /usr/bin/python2.7 | |
def signature(s): | |
t = list(s) | |
t.sort() | |
t = ''.join(t) | |
return t | |
def all_anagrams(filename): | |
d = {} |
#! /usr/bin/python2.7 | |
stream = open("words.txt",'r') | |
def get_words(): | |
words = [] | |
for word in stream: | |
words.append(word.strip()) | |
return words |
#!/usr/bin/env python | |
import sys, string, hashlib, getpass | |
ask_silent = getpass.getpass | |
def ask_normal(str): | |
sys.stderr.write(str) | |
return sys.stdin.readline()[0:-1] # remove the newline |
#include <iostream> | |
#include <math.h> | |
#include <stdio.h> | |
using namespace std; | |
int main() | |
{ | |
long int N,K,arr[100000],i,j,ctr=0; | |
scanf("%d%d",&N,&K); |