Tags » Programming » Page 2

ASP.Net!

So. It has been a few weeks since my last post. During this time I have (with some assistance from my friend and good programmer Ricky Manning ), managed to get my application importing from file and saving to file, whilst taking into account any existing words, so it doesn’t overwrite existing entries. 255 more words

Programming

Captain's log

Small beginnings

I have been tossing around the idea of starting a blog/vlog to document things that I’m excited about and to motivate me to work on the varying projects my brain teases me with.  254 more words

C

Repair after plaintext

If anything, KPI is useful to keep people in-line with churning out units; human nature stays apathetic and even open troves are unattractive. Even so, it was suspicious to run tests on public machines. 88 more words

Programming

Regular Expression in Python: Greedy match

When you use re.findall(“(.*):” to get the strings ending with full-colon(:), you may not always get the expected result if your string has multiple full-colons. Lets run the command before we talk. 109 more words

Programming

Find the biggest black square from an N*N matrix of black or white squares

Question:

Find the biggest black square from an N*N matrix of squares. 1 means it’s black, 0 means it’s white. Output should be the list of squares which forms the largest black square. 202 more words

Programming

Given a string of length N, output "Correct" if brackets close in correct order else output "Incorrect"

Question:

Given a string of length N, output “Correct” if brackets close in correct order else output “Incorrect”

Input     :   ({}[((({{}})[{()}]))])

Solution(Python):

    # Author            :        Sreejith Sreekantan
    # Description        :        

    #                         Given a string of length N, output "Correct" if brackets close in correct order else output "Incorrect"
    #                         Input     : ({}[((({{}})[{()}]))])
    #                         

#!/usr/bin/python
def validString(input1):
    stk = []
    flag = True
    for x in input1:
        if x in ['{', '(', '[']:
            stk.append(x)
        else:
            if  len(stk)==0:
                flag = False
            elif x == '}' and not stk=='{' :
                flag = False    
            elif x == ')' and not stk=='(' :
                flag = False 
            elif x == '}' and not stk=='{' :
                flag = False    
            if not flag:
                return "Incorrect"
            else:
                stk.pop()
    return "Correct"
 

input1 = '({}[((({{}})[{()}]))])'
input2 = '({}((({{}})[{()}]))])'
print validString(input1)    
print validString(input2) 9 more words
Programming

Game Jam 2014: Wario Ware Theme

You can download and play our game here: http://1drv.ms/1tErixt 

October has brought us the first Game Jam of second year, a 24 hour session where we are locked away in the second floor of the University to make a game. 631 more words

24 Hours