Labels
android
Assembly Language
bash
Beagle Bone Black
c
c++
CL1
competitive programming
compiler
computer vision
data structure
database
dsps
encryption
games
graphs
hacks
java
linux
lisp
MIL
monte carlo algo
MPAL
networking
OOMCPL
osa
perl
pl
PL -3
PL-1
PL-2
PL-4
python
qt
recursive algorithms
Scala
security
sorting
storage
terminal
ubuntu
utilities
Sunday, 16 July 2017
Friday, 14 July 2017
Thursday, 13 July 2017
Competitive Programing: Vowel Substring
Q: Given a string find all the number of sub-strings which contain all the five vowels at least once.
It is solved in two ways:
It is solved in two ways:
- A slightly more complicated linear scan method
- By generating all the sub-strings and then checking whether or not it satisfies the our requirements. (brute force)
Tuesday, 11 July 2017
UVa 00637 - Booklet Printing
This problem is an adhoc problem that asks to you to design a system to print folding booklets. The problem description and test cases can be found here.
Saturday, 8 July 2017
Record internal speaker audio in Linux
Recording internal audio in Linux |
Sounds perfect, except the fact that it has been already implemented. Meanwhile, through numerous visits to stackoverflow and askUbuntu I finally discovered a cool new way to record audio.
Tuesday, 4 July 2017
Uva 278 - Chess
This problem is one of the best ad-hoc problems I have come across - simple but thought provoking. It asks you to the maximum number of rooks, queens, kings or knights you could place on n*m chess board such that no piece attack another.
Given that 4<=m,n<=10.
Given that 4<=m,n<=10.
Monday, 3 July 2017
Summing the digits of a number in C++
Q: This is a simple ad-hoc problem which asks to sum up the digits of a number repeatedly until the sum is less than 10. We are required to stop the program when input given is 0.
Subscribe to:
Posts (Atom)