No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
My problem is this, whenever I give this code an input of <!--, it always runs it through the tag definition first that I made, instead actually i want it to run through the <!-- in the rule part that I made (the one that BEGINS S1 after that), how … |
|
input = integer n, array a[1..n] output = integer w, arrayb[1..w], array c[1..w] [code] w = 0 while (true){ k = 1; while (a[k] is equal to nil) do k++; if k equals n +1 then halt algorithm end while w++; b[w] = a[k]; c[w] = 1; a[k] = nil … |
|
can someone help me to develop a pseudo code that will allow me to find the min and max of an array recursively?? |
|
So I am asked to write a function called parens that will allow me to do this. Say that I have a string (a + (x) * (6 + 14) - q7), then I will get: (x) (6 + 14) (a + (x) * (6 + 14) - q7) the … |
|
my code is however whenever I tried to print something inside the function it always gives me a bad address error, can someone please tell me why?? this is my code: largest : #Function prologue subu $sp, $sp, 56 sw $a1, 44($sp) sw $a0, 40($sp) sw $ra, 36($sp) sw $fp, … |
|
Okay so say I have an array which is like this: [code] .data values: .half -17 .half 16 .half 153 [/code] and I want to print it as -17 16 153 How do I do this?? If it is stored in a 4 byte of integer then it would be … |