olli
I still can't understand why it's not O(2^l) because I learnt recurrence method to find complexity of any recursion problem. And recurrence method gives answer as O(2^l)
in the case of a full tree, it is O(2^l) But what about this tree? It's surely not 2^l because there is no right path to take, you only traverse a list 2 / 1 / 0 / 2 But the question remains, does it make more sense to express it in terms of nodes or levels? And I would argue nodes make more sense. Think of a full tree with 65535 nodes, which has 15 levels. Thinking in terms of levels, adding one more node or adding 60000 nodes might result in the same number of levels, however the number of nodes might change significantly.
Anonymous
if I have a string like str = "Hello World!" as you can see there is tow spaces and I want it to make it one by assign the second space to empty char I try to do like this str[6] = '' but give me an error I searched and then try '/0' but nothing happen what should I do
klimi
set it to '\0'
Anonymous
hello guys, ı have an assigment could somebody help me
Anonymous
no ı have some problem some part of this assigment just that
klimi
about?
Anonymous
what is the minimum amount of information needed to recursively compute a child's absolute position? eg while(child != nullptr) { computeChildPosition(child, information); child = child->child; }
Anonymous
just provide what you've done so far and what you want to achieve
Paul
I want you to look after my codeforces account want improve rating for 2 months. Tell me cost by DM
Anonymous
bruh
©
hi everyon
©
i have question
©
who can help me
©
How to perform Left circular rotation of an array? in c#
Ehsan
#cppbookguide
Small
❤️
Anonymous
Can anyone suggest me some books of c language
Anonymous
What are best compiler for c/c++ programming
xypher
/get cbook
Ayush
Hey guys I am learning C. What are somethings I can do to work and feel confident with c?
HaiNahi
Hey guys I am learning C. What are somethings I can do to work and feel confident with c?
Make a perfectly playing tic tac toe, by cracking it by hand
HaiNahi
Should it be cli based or gui?
cli would be enough, but you have to handle things like attack double attack so on, this was the first project which I had made, so I told :)
Anonymous
Can anyone help me tomorrow in my capgemini first round test
Anonymous
Can anyone help me tomorrow in my capgemini first round test
From I prepare for first round please let me know if anyone have idea,
Anonymous
imagine
Have u command on pseudocode
DEV 7
#include<iostream> using namespace std; int main(){ int num,sumeven=0,sumodd=0,rem,count=0; cout<<"enter the value of n"<<endl; cin>>num; while(num!=0){ rem=num%10; num=num/10; count++; } cout<<count<<endl; for(int i=0;i<count;i++){ rem=num%10; num=num/10; if(rem%2==0){ sumeven=sumeven+rem; } else{ sumodd=sumodd+rem; } } cout<<"sumeven"<<sumeven<<endl; cout<<"sumodd"<<sumodd<<endl; return 0; }
DEV 7
program for printing sum of odd and even numbers in a digit I got runtime error
Suyash
#include <stdio.h>   void main() { int i, num, odd_sum = 0, even_sum = 0;   printf("Enter the value of num\n"); scanf("%d", &num); for (i = 1; i <= num; i++) { if (i % 2 == 0) even_sum = even_sum + i; else odd_sum = odd_sum + i; } printf("Sum of all odd numbers = %d\n", odd_sum); printf("Sum of all even numbers = %d\n", even_sum); }
Suyash
thanks brother
Appreciated;)
バレンタインがいない柴(食用不可)
Ayush
Hey guys I have a remove file function in a program. Can somebody please review it?
𝗕𝗔𝗛𝗔𝗥‌
write program to namuber red even and odd using function ...
𝗕𝗔𝗛𝗔𝗥‌
anyone writing🥺
𝗕𝗔𝗛𝗔𝗥‌
No, we don't do your homework
no homwork ..ned for test in university
Nameful
no homwork ..ned for test in university
not really much better, but I appreciate the honesty
𝓐𝓵𝓲
write program to namuber red even and odd using function ...
Just google it. You will find very useful answers
𝓐𝓵𝓲
send me link
What link? Just write your question you asked it here in Google and you will find the answer with very good explanations
Yash
.A company is planning a big sale at which they will give their customers a special promotional discount. Each customer thatpurchases a product from the company has a unique customerID numbered from 0 to N-1. Andy, the marketing head of thecompany, has selected bill amounts of the N customers for the promotional scheme. The discount will be given to thecustomers whose bill amounts are perfect squares. The customers may use this discount on a future purchase.Write an algorithm to help Andy find the number of customers that will be given discounts.​
Ayush
struct Connection { const char *filename; FILE *file; struct Database *db; }; . . . void Database_remove(struct Connection *conn) { //printf("%s\n",conn->filename); if (remove((char*)conn->filename)!=0) die("Error in removing database"); } Hey guys is this a good way to remove file?
Nameful
Please give syntax for free
Syntax is going to cost you 5 Euro
Ayush
Syntax is going to cost you 5 Euro
damn man that is cheap!! 😱
Nameful
damn man that is cheap!! 😱
it's only the first month. later months will cost 49 Euro
Ayush
it's only the first month. later months will cost 49 Euro
Now that's a steal! Grab it while you can!!
Yash
Cheap people
Anonymous
like gcc?
Suka
like visual studio community?
Anonymous
pretty sure thats not a compile though. But i think it does come with the MSVC
Anonymous
Yes, i see
Anonymous
128gib or is it mib?
Anonymous
128gib is plenty
Anonymous
Thats plenty for a simple compiler
Anonymous
think the standard lib takes up some space. But you really shouldnt need anything more than 500mb
Suka
try mysy2 and check youtube for tutorial. goodluck
Anonymous
Okay thats bad :/. if you are okay with a C compiler the tiny-c compiler is only a couple of kilobytes
kj
/notes
kj
/get cpp
kj
/get cpp_book_guide
kj
/get cppbookguide
.
/get freeprogrammingbooks
ANONYMOUS
Hello anyone can help in C MPI program?