Questions tagged [reverse]

Rearranging the order of a sequence such that the final order is a mirror image of the original.

Rearranging the order of a sequence such that the final order is a mirror image of the original.

3773 questions
1
vote
8 answers

Reverse all three digit elements of an int array

so I'm trying to take an int array and reverse every element that has more than three digits. i.e. change 147 -> 741 I'm new to java and do not even know where to start with this. Here is the array I am trying to do this with. int codedMessage[]…
NoobCoderChick
  • 617
  • 3
  • 21
  • 40
1
vote
2 answers

Does JavaScript's reverse( ) always change the original variable?

Let me explain: function PalindromeTwo(str) { str = str.split(''); var arr = []; str.forEach(function(it){ if( (/[a-z]/i).test(it) ){ arr.push(it); } }) var reverseArr = arr.reverse(); return…
1
vote
1 answer

Nginx as internal forward proxy

I have two servers, a proxy server running nginx, and a backend application server From the outside, everything works as expected. From the backend, I can access any outside server. When trying to access the very website from the backend (e.g.…
Clemens Lode
  • 199
  • 1
  • 2
  • 8
1
vote
1 answer

ZPL II and dynamic width of graphic box when reverse printing a field

I am quite new to the ZPL II language and have some trouble with writing text in reverse mode with the ^GB and ^FR commands. As far as I understood the ZPL language, when I want to print a text in reverse mode (white over black) I have to first draw…
ThomasZ
  • 11
  • 1
  • 3
1
vote
0 answers

IDA pro cannot recognize some static compiled library in a pe file

I'm reversing a PE file and I think the exe uses some library compiled static. Now IDA can recognize some basic function like 'CryptReleaseContext' and ' __CxxFrameHandler3' automatically. I have changed Type Libraries and it still cannot identify…
user3836856
  • 105
  • 7
1
vote
1 answer

Reverse highmaps legend values or color OR draw legend color from other attribute instead of value in series

here is my highmaps http://jsfiddle.net/waqarakbar/8fypgxvc/ I need to reverse the values of the legend so that 30 go to top (red color) and 0 come to bottom (green color). Reversing either the values or the color gradient will solve my problem. I…
Waqar Akbar
  • 25
  • 1
  • 11
1
vote
1 answer

How to set breakpoint with gdb on function from stripped shared library?

I've got an executable file and stripped lib.so file that is used by executable. I have decompiled lib.so file and defined the function fun I want to set breakpoint and its internal address. Is it possible to set breakpoint on function fun using…
1
vote
5 answers

Reversing lines of a text file through function in class

I am trying to make a class that receives file name in constructor and has function that reverses all the lines in that file. class exampleOne: def __init__(self, fileName): self.fileName = fileName def reverse(self): file…
AsapCancel
  • 87
  • 1
  • 10
1
vote
2 answers

Is reversing a linked list better by using stacks?

I was reversing a singly linked list using the following code: Node prevNode = null; Node currNode = head; while (currNode != null) { Node next = currNode.next; currNode.next = prevNode; prevNode = currNode; currNode = next; } head =…
Riddhesh Sanghvi
  • 1,218
  • 1
  • 12
  • 22
1
vote
1 answer

Django reverse relationship problem

I'm trying to write a reverse relationship for taking the number of answers asociated to each question, but all i get is 'Negative voting' repeating as many times as the question is voted negatively, and i don't get why it doesn't display the number…
dana
  • 5,168
  • 20
  • 75
  • 116
1
vote
2 answers

Haskell reversing tail but leaving first element

I'm having trouble with the following exercise : I'm supposed to reverse all elements in a list except for the first one, the first element of the list must stay in its original position. Correct Example: input: rvrsTail [1,2,3,4,5] output…
eXistanCe
  • 735
  • 1
  • 9
  • 25
1
vote
3 answers

k reverse a linked list

Here, I want to reverse every k elements of the linked list recursively. For the linked list 3 →​ 4 →​ 5 →​ 2 →​ 6 →​ 1 →​ 9 for kReverse(3) becomes 5​ → 4→​ 3→​ 1→​ 6→​ 2→​ 9→ 1 I am getting a NullPointerException. public static Node
1
vote
2 answers

How to output a reverse string using innerHTML?

I'm trying to reverse a string and output the results using innerHTML. Nothing is output when I click the button.
Almac
  • 227
  • 2
  • 9
  • 18
1
vote
3 answers

How to slice strings backwards python

I am learning python and I made a basic program where the user takes the link of a photo and inputs it, then the program downloads that photo. In order to make sure that the user doesn't enter a link that is a webpage instead of a photo, I had the…
Doozku
  • 41
  • 5
1
vote
3 answers

Custom uint16_t reverse function returns 0x8000

uint16_t ReverseInt16(uint16_t nonreversed) { uint16_t reversed = 0; reversed |= (nonreversed & 1 << 15) << 0; //check if bit 15 of nonreversed int is 1, if yes, write 1 to position 0, else write 0 to position 0 reversed |=…
FelIOx
  • 73
  • 1
  • 1
  • 5