Brain games: puzzles, riddles, and logical games.
Users rating Registration FAQ

Puzzles, riddles, logical games, mathematics

www.puzzlesriddles.com on Facebook
 

 
Login:
Password:
Remember?
Change password



1. pretorik - 161
2. markr - 116
3. Gordon Weir - 104
4. mbloomfi - 97
5. Dennis Nazarov - 96
6. zzz123 - 72
7. Srikanta - 56
8. lidSpelunker - 53
9. SAMIH FAHMY - 48
10. jkr - 44


1. denisR, mishik - 236
2. alan, De_Bill - 231
3. dddfff - 228
4. kavfy - 221
5. idler_ - 106
6. akajobe - 94
7. tolstyi - 56
8. STARuK - 42
9. vale - 31
10. xandr - 11



A power of 2 Puzzles for programmers  Weight: 0 Liked the puzzle: 100% 06.01.2010
A positive integer is given. How can you determine whether it is a power of 2 without using recursion and floating point operations?
Comments:  8 check your solution  
Twenty asterisks Puzzles for programmers  Weight: 0 Liked the puzzle: 100% 13.01.2010
A text of a C code is given below. Find three different ways to replace one symbol so that the resulting code would print 20 asterisks. A symbol has to be replaced, not added or deleted.
main() { int i, N=20; for (i = 0 ; i < N ; i--) { printf("*"); } }
Comments:  3 check your solution  
An integer array Puzzles for programmers  Weight: 0 Liked the puzzle: 100% 20.01.2010
I. A large array of integer values is given. All values appear twice except one which appears once. How to find this value using at most O(1) additional variables and browsing through the entire array at most O(1) times.
II. Same, except now exactly two values appear once.
Comments:  6 check your solution  



 
Users online 0: administrator -  administrator  moderator -  moderator  VIP user -  VIP user  user -  user
en.braingames.ru © 2006-2010 All Rights Reserved