Anonymous
Anonymous
Anonymous
Can anyone help me with this one?
Dima
V01D
Do people not read the pinned messages?
MᏫᎻᎯᎷᎷᎬᎠ
What's genome sequence?
Accel
Oh genes..
Anonymous
It's okay
MᏫᎻᎯᎷᎷᎬᎠ
Is there any rule for the sequence?
MᏫᎻᎯᎷᎷᎬᎠ
I'm not that familiar with biology lol
Asad
Can it be in the form of:
AAAAA T ACGT
AAAA T AACGT
AAA T AAACGT
AA T AAAACGT
A T AAAAACGT
T AAAAAACGT
and so on?
Anonymous
Hi, I am using hiredis as redis c client.But it bot not thread-safe.I have tried to use a redisContext per thread but it seems not work.eredis supports thread safety, but few people seem to use it
Asad
What was the time complexity of your approach? Everything I can think of is insanely inefficient... So, it's interesting...
Anonymous
get cppbookguide
Ismael
Dima
please format your code
Anonymous
Ismael
Thanks for the correction 😊
vinícius*
there you go, buddy
Ismael
vinícius*
vinícius*
you're doing cin >> name and then the getline
vinícius*
therefore overwriting the first name with the second
Ismael
🤭ow
jo ʕ•̫͡•ʕ•̫͡•ʔ•̫͡•ʔ
disclaimer: i started programming in april ! a newbie here as well!
hello! i searched high and low on stack overflow but i don’t seem to find my answer...
so all i want to do is printf ALL my scanf using array!
in the first pic is a code that is done with integer.
i tried to implement what i have with it to apply it into char but it does not print out the correct things.
the second pic is the problem i’m currently encountering.
jo ʕ•̫͡•ʕ•̫͡•ʔ•̫͡•ʔ
jo ʕ•̫͡•ʕ•̫͡•ʔ•̫͡•ʔ
also.. i have been putting notes at the side bc it’s 2am and i have been trying to tweak things but it clearly didn’t work out
jo ʕ•̫͡•ʕ•̫͡•ʔ•̫͡•ʔ
Anonymous
Hi guys
Anonymous
Hello
sree nandhan
particaney 🐸🍲
Guys i have a problem with fifo files. So its in a while loop in the two programs. The first loop works fine. But the second one, the programs who asks a fgets simply do enter without ever asking.
Cengizhan
Generation should be linear, right? Comparison 10^5 strings to 10^5 strings, I do not think so.
su
https://www.youtube.com/watch?v=tdB_YoMr2ck
Anonymous
Dima
bruh
Cengizhan
Thats why you need to describe your expectation about in terms of "strings", "chars" etc. on linear or quadratic way.
Dima
Anonymous
Nurlan
MᏫᎻᎯᎷᎷᎬᎠ
Linear in terms of what exactly?
M__
particaney 🐸🍲
Hi, how can i make, 2 program comunicating witch each other with 2 named pipe. The program dosnt end but comunicate constantly. (after the first round in the while loop i cant make it work)
particaney 🐸🍲
One program says a number. The other gives a answer and waits back the number from the first program. And this non stop. With 2 distinct fifo file
Anonymous
hello, am glad i found this group and i have some begginer question...is it really necessary to read both edtion of K&R book?
Anonymous
C
jo ʕ•̫͡•ʕ•̫͡•ʔ•̫͡•ʔ
Oh no ... It just prints the last event the user types in. I have actually encountered this previously. 🥺
Anonymous
thanks man
su
Anonymous
i will tnx for the advice👍🏿
Anonymous
no
then only the first ed or the second ed?
V01D
Ajay
Reading 10^5 strings with 10^5 characters is 10^10 read operations(when we think in terms of no. of times we read each character).
So just reading the input that you described is quadratic. Isn't it?
BTW, What's the memory limit to your question?
Ajay
I initially thought of a Trie data-structure that holds each string. So, after inserting all the strings, when we try to generate a given string, then we just check if the none of the strings that have already been inserted have their i_th character to be either of A, T, C, G. If not, then you know that you can choose this i_th character to be this non-occurring character then the rest of the characters can be any thing. For simplicity, I will choose all of these characters be A.
But, still going through all these strings and that too character wise isn't a good approach. What do you think?
Ajay
BTW, you didn't tell the time-limit.
Ajay
Ajay
N here is # of strings or multiplication of length and their count?
Ajay
Ofc, O(something) doesn't give you the exact space that your algorithm use and I don't think the interviewer will have any problem if the data-structure that you use takes an equivalent amount of space that the input itself takes.
yes, the time limit is a concern here.
Ajay
Interested to know your approach?
Cengizhan
Create 10^5 hash values for 10^5 strings. And generate new one and compare generated string hash value with existing one. But still it is quadratic.
Cengizhan
vinícius*
You can set up a function that returns the "negative" of a given genome
vinícius*
Like, say A is the negative of G (arbitrarily), and something similar for all the rest
Cengizhan
vinícius*
because the given set is guaranteed to have no clones, right ?
Anonymous
What about applying to Intel?😏😂
Anonymous
Are the string fixed-length?