Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
1 vote
1 answer
69 views

Regarding the array reversal problem, I guess loop invariants are logically correct, based on the symmetry of the elements in the array and their relationship after reversal. However, I don’t ...
Morgan's user avatar
  • 13
0 votes
1 answer
169 views

I have been trying to create a method that can reverse a linked list. However, it only show the head of the original list without the rest of the parts showing up. I have tried making another, similar ...
Luna's user avatar
  • 1
-2 votes
1 answer
103 views

Last month I started to learn how to use Cheat Engine to script with zero knowledge and some things are not clear to me. My objective was to create a defense boost by dividing the damage taken by ...
cosmin_kzyahoocom's user avatar
-6 votes
4 answers
349 views

Header: Int reverse(int n) Return the number in reverse order of digits. the rules are: reverse get one integer Must be done with recursion can't use string,loops or any other functions. can assume ...
Daniel Levi's user avatar
0 votes
4 answers
116 views

I have a field in a table which consist of a string of values separated by semi-colons, e.g. apple; banana; orange; pear I have been trying to build a SELECT statement to return the second group in ...
JK14's user avatar
  • 3
1 vote
1 answer
109 views

Can any one please help me with the reverse part of the regex? I got it almost right but the reverse is tricky because if I have an input as: Input = dogs and cats or (white or black) or (cat and (red ...
LLP's user avatar
  • 71
0 votes
1 answer
85 views

I'm Alessio, and I'm facing an issue with the Nginx reverse proxy. Here is the configuration file for the redirects: # Nextcloud server configuration server { listen 80; server_name nextcloud....
Alessio Restaino's user avatar
-1 votes
1 answer
55 views

My code run successfully but I want that output files will be separate independently. import os path = '/txt_files_path/' # txt files path for filename in filter(lambda p: p.endswith("txt")...
Dan Gon's user avatar
  • 11
0 votes
1 answer
100 views

why the second sort occurs compilation error? List<List<Long>> list = Lists.newArrayList(); list.stream().sorted(Comparator.comparing(x -> x.get(0))); //works fine list.stream().sorted(...
bwju's user avatar
  • 13
3 votes
3 answers
590 views

I want to achive a simple goal. Stop some services in a defined order on multiple servers and afterwards start them in the reversed order. So first step is to define an ordered hashtable / dictonary. $...
elh's user avatar
  • 56
9 votes
1 answer
136 views

Given we can do a left-rotate (and subsequently a right-rotate) of an array only in terms of calls to reverse, like so: void rotl(std::string &s, const int d) { std::reverse(s.begin() , s....
Penny Dreudter's user avatar
1 vote
2 answers
97 views

I have a function implemented which reverses the bits in a number. The number of bits in the number to be reversed can vary. However, of course it must be shifted to the left at the end to align with ...
Engineer999's user avatar
  • 4,159
0 votes
2 answers
748 views

Please, what am I missing? I am trying to reverse a singly linked list (in-place), but all I get returned is the one node (pointer to the head of the list). I've tried using a void function (as a ...
AbuAminu's user avatar
1 vote
1 answer
53 views

I am currently trying to reverse a slice of a list going from 0 to 11 class Game(models.Model): board = models.JSONField(default=list) game = Game(board=[4] * 12, scores=[0, 0], current_player=0, ...
trexgris's user avatar
  • 400
0 votes
3 answers
86 views

This is my first Django project and I am really struggling. It is a simple booking app where the logged in user is on a page with a form to make a booking and a list of current bookings. I can make ...
astro_mat's user avatar

15 30 50 per page
1
2 3 4 5
255