Skip to content

Instantly share code, notes, and snippets.

View Zedmor's full-sized avatar

Akim Akimov Zedmor

View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# /bin/python
class BinTree():
def __init__(self, root=''):
self.left = None
self.right = None
self.root = root
def LeftChild(self):
return self.left
# /bin/python
class BinTree():
def __init__(self, root=''):
self.left = None
self.right = None
self.root = root
def LeftChild(self):
return self.left
#Uses python3
import sys
def largest_number(a):
#write your code here
def numCmp(a,b):
'''
:param a:
:param b: a and b - strings of int
#Uses python3
import sys
import itertools
from random import randrange
def largest_number(a):
#write your code here
def numCmp(a,b):
'''
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Zedmor
Zedmor / 51NQueens.py
Created December 14, 2016 19:45
btute force
# uses Python3
# The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other.
#
#
#
# Given an integer n, return all distinct solutions to the n-queens puzzle.
#
# Each solution contains a distinct board configuration of the n-queens' placement, where 'Q' and '.'
# both indicate a queen and an empty space respectively.
#