Puzzle Corner
Sign In
Home
Feedback
Blog
Resources
About
Starred
Add Question
All (696)
coding (266)
c++ (157)
algorithms (151)
puzzle (134)
CS Fundamentals (83)
oop (55)
arrays (45)
internet (40)
string (34)
math (31)
databases (28)
system (26)
probability (26)
networking (25)
linkedlist (24)
binarytrees (24)
tree (22)
bit manipulation (19)
sorting (11)
stack (10)
bst (9)
java (8)
xml (8)
sql (7)
next in series (7)
traversal (6)
graph (4)
debugging (4)
lateral thinking (4)
palindrome (4)
mysql (4)
prime (4)
general (4)
unix (3)
CGI (3)
duplication (3)
threading (3)
random (3)
search (3)
fibonacci (3)
encryption (3)
joins (3)
hash (3)
queue (3)
asm (3)
design patterns (2)
Random
Array subset with sum closest to zero
[
2007-02-26 23:42:19
]   
Given an array, Design an algorithm to find the subvector with the sum closest to zero.
extenstion: What if we wished to find teh subvector with the sum closest to a given real number t?
link
Author
:
prem
Tags
:
algorithms
|
arrays
Answer
Print a 2D array in spiral order
[
2007-02-26 23:42:18
]   
Print a 2D array in spiral order. For example
1 2 3 4
5 6 7 8
9 10 11 12
The above 2D array will yield,
1 2 3 4 8 12 11 10 9 5 6 7
link
Author
:
prem
Tags
:
algorithms
|
coding
|
arrays
Answer
Longest palindrome
[
2007-06-14 01:07:25
]   
Write a function that returns the longest palindrome in a given string. e.g \"ccddcc\" in the string \"abaccddccefe\"
link
Author
:
prem
Tags
:
algorithms
|
coding
|
c++
|
string
|
palindrome
3 Comments
Answer
Palindromes
[
2007-02-26 23:42:18
]   
The date October 2, 2001, in MMDDYYYY format will be a palindrome (same forwards as backwards).
10/02/2001. when was the last date that this occurred on? (see if you can do it in your head!)
link
Author
:
prem
Tags
:
palindrome
2 Comments
Answer
Linked list palindrome detection
[
2007-02-26 23:42:17
]   
Given a linked list of characters find if the string is a palindrome. Do
not use any extra memory.
link
Author
:
prem
Tags
:
linkedlist
|
palindrome
2 Comments
Answer
Palindrome number
[
2007-02-26 23:42:18
]   
Check whether the bit representation of integer is a palindrome
link
Author
:
prem
Tags
:
coding
|
palindrome
5 Comments
Answer
Created by
Premchand Jayamohan