Your task is to construct a building which will be a pile of n cubes. The cube at the bottom will have a volume of n^3, the cube above will have volume of (n-1)^3 and so on until the top which will have a volume of 1^3. You are given the total volume m of the building. Being given m can you find the number n of cubes you will have to build? The parameter of the function findNb (find_nb, find-nb, findNb) will be an integer m and you have to return the integer n such as n^3 + (n-1)^3 + ... + 1^3 = m if such a n exists or -1 if there is no such n. |
|
asked by Ray (ray18) 7 years ago | |
2 |
In school , I do not write comments while programming yet I get marks . So , is it necessary to write comments in Boards ? |
|
asked by Rajarshi Ganguly (raj_2301) 7 years ago | |
3 |
What are Coprime numbers? |
|
asked by Mahek Shivnani (mahekshivnani) 7 years ago | |
4 |
Can any one suggest the code for : * * * * * * * * * * * * |
|
asked by Sahil Prasad (sahilp007) 7 years ago | |
2 |
Do we have Bitwise operators in our syllabus ?? |
|
asked by Pranjali Sharma (pranjali2806) 7 years ago | |
1 |
**notes for those who find this confusing ** TYPE CASTING/CONVERSION is implicit +explicit COERCION is implicit CASTING is explicit. |
|
asked by Deblina Bora (booksboozer) 7 years ago | |
1 |
ANY TDA STUDENT HERE? YA SAB COMP XD! |
|
asked by Shivaanee sharma (shivaanee22) 7 years ago | |
2 |
Write a program to accept a sentence and delete all the uppercase characters present in the string. The program also counts the number of deleted characters and also replace the vowels with "*" . Print the new replaced string. Sample input : The Capital of India is New Delhi. Output : h* *p*t*l *f nd** *s *w *lh*. |
|
asked by Evan Jason (evanjasonhenry) 7 years ago | |
2 |
Write a java program to input a sentence and to display sentence in reverse order. |
|
asked by Anugrahkapoor24 (anugrahkapoor24) 7 years ago | |
2 |
Types of utility? |
|
asked by satwindersingh333 7 years ago | |
1 |
Page 48 |
ICSE chat