Revan
CPSComputer Programming - Seneca Polytechnic College
•Created by Revan on 10/15/2023 in #ask-a-question
Is it possible to remove the first item in a list in Python and still have O(1) run time?
nvm*
35 replies
CPSComputer Programming - Seneca Polytechnic College
•Created by Revan on 10/15/2023 in #ask-a-question
Is it possible to remove the first item in a list in Python and still have O(1) run time?
oh i wait just increase the size again and swap whatever value is there nbm
35 replies
CPSComputer Programming - Seneca Polytechnic College
•Created by Revan on 10/15/2023 in #ask-a-question
Is it possible to remove the first item in a list in Python and still have O(1) run time?
how do i add elements to the front and back then? if im just shrinking the list and not removing anything?
35 replies
CPSComputer Programming - Seneca Polytechnic College
•Created by Revan on 10/15/2023 in #ask-a-question
Is it possible to remove the first item in a list in Python and still have O(1) run time?
but you can't use the pop method
35 replies
CPSComputer Programming - Seneca Polytechnic College
•Created by Revan on 10/15/2023 in #ask-a-question
Is it possible to remove the first item in a list in Python and still have O(1) run time?
its a deque you have to pop from front and back
35 replies
CPSComputer Programming - Seneca Polytechnic College
•Created by Revan on 10/15/2023 in #ask-a-question
Is it possible to remove the first item in a list in Python and still have O(1) run time?
oh yeah i can do that, thanks
35 replies
CPSComputer Programming - Seneca Polytechnic College
•Created by Revan on 10/15/2023 in #ask-a-question
Is it possible to remove the first item in a list in Python and still have O(1) run time?
35 replies
CPSComputer Programming - Seneca Polytechnic College
•Created by Revan on 10/15/2023 in #ask-a-question
Is it possible to remove the first item in a list in Python and still have O(1) run time?
so i cant move the front pointer anywhere, it has to stay at 0 lol
35 replies
CPSComputer Programming - Seneca Polytechnic College
•Created by Revan on 10/15/2023 in #ask-a-question
Is it possible to remove the first item in a list in Python and still have O(1) run time?
yeah thats another problem, in my deque i have to implement an index [] and when index [0] is called it must point to the front of the deque
35 replies
CPSComputer Programming - Seneca Polytechnic College
•Created by Revan on 10/15/2023 in #ask-a-question
Is it possible to remove the first item in a list in Python and still have O(1) run time?
thats the requirements I have to use a python list, no importing deques, no using pop,extend or append
35 replies
CPSComputer Programming - Seneca Polytechnic College
•Created by Revan on 10/15/2023 in #ask-a-question
Is it possible to remove the first item in a list in Python and still have O(1) run time?
yeah the run time for my pop_front has to be O(1) for my DSA assignment or I lose marks.
35 replies
CPSComputer Programming - Seneca Polytechnic College
•Created by Revan on 10/15/2023 in #ask-a-question
Is it possible to remove the first item in a list in Python and still have O(1) run time?
even though I said I have to use a list
35 replies
CPSComputer Programming - Seneca Polytechnic College
•Created by Revan on 10/15/2023 in #ask-a-question
Is it possible to remove the first item in a list in Python and still have O(1) run time?
I tried asking Chat Gpt that and its response is don't use a list, implement a linked list lol
35 replies
CPSComputer Programming - Seneca Polytechnic College
•Created by Revan on 10/15/2023 in #ask-a-question
Is it possible to remove the first item in a list in Python and still have O(1) run time?
I cant import deque unfortunately. I have to use only a python list. Essentially I'm building my deque in python using a list.
35 replies
CPSComputer Programming - Seneca Polytechnic College
•Created by Juro on 9/20/2023 in #ask-a-question
Those who did co-op with the Government, how is it?
No i didn’t do any extra projects, my gpa was a 3.7.
7 replies
CPSComputer Programming - Seneca Polytechnic College
•Created by Juro on 9/20/2023 in #ask-a-question
Those who did co-op with the Government, how is it?
I enjoyed my time working with the provincial government, though my position was Business Analyst so I didn’t do any coding. The work environment was chill, you get to work from 3 days a week. Though before I was leaving it looked like they were changing to 2 days.
7 replies
CPSComputer Programming - Seneca Polytechnic College
•Created by Revan on 8/17/2023 in #ask-a-question
Has anyone done a Workstudy before?
I didn't see any for fall yet
8 replies
CPSComputer Programming - Seneca Polytechnic College
•Created by Revan on 8/17/2023 in #ask-a-question
Has anyone done a Workstudy before?
I've seen some job postings where profs asked for software developers for projects they are working on but they were for the summer
8 replies
CPSComputer Programming - Seneca Polytechnic College
•Created by Revan on 8/17/2023 in #ask-a-question
Has anyone done a Workstudy before?
its a part time job you can take during a semester at Seneca
8 replies
CPSComputer Programming - Seneca Polytechnic College
•Created by Revan on 8/17/2023 in #ask-a-question
Has anyone done a Workstudy before?
8 replies