puzzle
How can I detect endianness on a system where all primitive integer sizes are the same?
(This question came out of explaining the details of CHAR_BIT, sizeof, and endianness to someone yesterday. It\'s entirely hypothetical.)[详细]
2023-02-05 05:46 分类:问答facebook puzzle submission failure
I tried submitting the first facebook puzzle to the facebook bot, but i got a reply that my code never compiled. I wrote the code in c (linux gcc compiler) and sent it via gmail. I didn\'t understand[详细]
2023-02-05 02:54 分类:问答review of a codility test - pair_sum_even_count
I recently took an online test on codility as part of a recruitment process. I was given two simple problems to solve in 1 hour. For those who don\'t know codility, its an online coding test site wher[详细]
2023-02-04 18:12 分类:问答How could this code behave as I saw?
I have a C++ application that had a one time assertion failure that I cannot reproduce.Here is the code that failed once:[详细]
2023-02-04 17:44 分类:问答Dividing circle into pieces by choosing points on circumference?
On a circle, N arbitrary points are chosen on its circumference.The complete graph formed with those N points would di开发者_高级运维vide the area of the circle into many pieces.[详细]
2023-02-04 06:47 分类:问答Display matrix with alternate 0 and 1 for each inner matrix
What will be algo for print a matrix of the order n(given as input by user) and always odd number. Example: In user give n = 7[详细]
2023-02-03 05:04 分类:问答Jigsaw Puzzle, cutting pieces from image
I\'m trying to make an application that cuts image into jigsaw puzzles. My problem is that I don\'t know how to do this (any kind of algorith开发者_JAVA百科m). I do want to have male and female ending[详细]
2023-02-02 18:59 分类:问答Modify a given number to find the required sum?
A friend of mine sent me this question. I haven\'t really been able to come up with any kind of algorithm to solve this problem.[详细]
2023-02-02 13:34 分类:问答Hanoi specific problem
Suppose that there are 2*n disks, How could be Hanoi problem solved if odd numbers are disks on bar \"A\" and even disks are on bar \"B\"?[详细]
2023-02-01 17:10 分类:问答expected `;' before "pennies"? C++ Debugging (Code Completed)
Can anyone tell me why I get an error on my last cout? #include <iostream> #include <cmath>[详细]
2023-01-31 09:16 分类:问答
加载中,请稍侯......