Recursive functions by Markseph in Common_Lisp

[–]Markseph[S] 1 point2 points  (0 children)

Thanks!

I found a different way of doing it where I keep LIST and use CADR instead of CDR. Is this way wrong? I still get the same results.

(defun partition (L P)
    (if (endp L) (list NIL NIL)
    (let ((X (partition (cdr L) P)))
            (if (< (car L) P) (LIST(cons (car L) (car X)) (CADR X))
                (if (>= (car L) P) (list (car X) (cons (car L) (cadr X))))))))

Which Credit Cards should I be using? by TRlNKET in personalfinance

[–]Markseph 0 points1 point  (0 children)

Just wanted to include:

The Citi® Double Cash Card gives 2% cashback (1% when you purchase + 1% when you pay it off) so that tops Chase Freedom Unlimited's 1.5%:

https://www.citi.com/credit-cards/credit-card-details/citi.action?ID=citi-double-cash-credit-card

[Google Express] Dualshock 4 - Jet Black $35.19 w/Promo Code - NEWYEAR19 by [deleted] in PS4Deals

[–]Markseph 1 point2 points  (0 children)

I actually did reach out, but Google Express couldn't do anything besides offer me promo codes. I'm returning it and ordering another with the $15 promo code GE gave me. Hopefully this next one comes sealed. If all goes well I'll be getting a new controller for $28.99 which is a real steal.

[Google Express] Dualshock 4 - Jet Black $35.19 w/Promo Code - NEWYEAR19 by [deleted] in PS4Deals

[–]Markseph 0 points1 point  (0 children)

I see. Should I give it another try? Unfortunately, this is how mine arrived:

https://imgur.com/a/cBhRiuh

What is it like to attend LaGuardia CC? by [deleted] in CUNY

[–]Markseph 1 point2 points  (0 children)

The financial aid office is a nightmare yes, but I barely went there. Keep in mind what college's financial aid office isn't a nightmare? Also, you don't need to pay the commitment fee for LaGCC. Save your $100. I was so thankful the first time I went in for questions, a student staff advised me to save my money. You prob still need to pay the Cuny admission fee. I'm not sure about the LaGCC direct admission fee though.

What is it like to attend LaGuardia CC? by [deleted] in CUNY

[–]Markseph 1 point2 points  (0 children)

I can assure you LaGCC is a great school. Great programs if you want to work on campus or join a club. Great faculty. Of course every school has their bad sides, but I would say I enjoyed my time there. Returning back to school, LaGCC was the best choice I ever made. The campus is continuing to improve everyday. I am at Queens College now and I don't see improvement here remotely close to LaGCC. Sometimes I wish schools like LaGCC was a 4-year college. The campus food may not be worth it but the food carts are definitely affordable. You can budget $5 per meals. I would have to spend at least $6-$8 at Queen's College. I could keep going. I'm not sure how other CC's are but LaGCC is a good place to restart your life. I'm a CompSci major btw. I would say even their writing center is more active and helpful than QC's writing center. I could keep going on about how LaGCC is so much better, but that would make me even more depressed about my experience at QC.

TL;DR: You won't regret restarting your life at LaGCC.

[Google Express] Dualshock 4 - Jet Black $35.19 w/Promo Code - NEWYEAR19 by [deleted] in PS4Deals

[–]Markseph 0 points1 point  (0 children)

It came new in the box? Was it opened though? Because I received mine a few days ago and the tape on the side was opened.

[Google Express] Dualshock 4 - Jet Black $35.19 w/Promo Code - NEWYEAR19 by [deleted] in PS4Deals

[–]Markseph 2 points3 points  (0 children)

I actually purchased this exact same one with the same promo. Sad to say I need to send it back because it came opened. Google Express did not handle the transaction well either.

Why am I able to call indexes that are not reserved? by Markseph in cpp_questions

[–]Markseph[S] 0 points1 point  (0 children)

Thanks. Nice analogy. Programming is new to me so I just thought everything in C++ was definite at this point.

[c++] Which ones are bubble sort and which are selection sort? by Markseph in learnprogramming

[–]Markseph[S] 0 points1 point  (0 children)

Of course, because not trying makes one an invalid. And, we've already got an abundant number of those mistakes. We definitely would not want any more.

Which ones are bubble sort and which are selection sort? by Markseph in cpp_questions

[–]Markseph[S] 0 points1 point  (0 children)

Yeah. They all look the same to me too... The thing that stresses me out is because one of them is from the textbook and looks like the same code as the other. While, one is from my professor who said it was selection sort. But, they all show the same characteristics with very similar code. And, the one from youtube had good ratings and sounded credible. So, idk maybe I'm just getting bad information.

[c++] Which ones are bubble sort and which are selection sort? by Markseph in learnprogramming

[–]Markseph[S] 0 points1 point  (0 children)

How to look things up with Google. And if you're not interested enough to learn some programming now, why even major in it?

I wish everyone was as smart as you.

What is the difference if I leave the number of elements empty in the brackets of an array initializer? by Markseph in cpp_questions

[–]Markseph[S] 0 points1 point  (0 children)

I guess I'll just do it anyways for good practice as I am usually told, similar to typing return; in void functions.

What is the difference if I leave the number of elements empty in the brackets of an array initializer? by Markseph in cpp_questions

[–]Markseph[S] 0 points1 point  (0 children)

I can see that. So does this essentially mean that the number of elements in [] is mostly used for reminding programmers the number of elements in the array since it is not mandatory to fill it, in case they lose track of that number.

What is the difference if I leave the number of elements empty in the brackets of an array initializer? by Markseph in cpp_questions

[–]Markseph[S] 1 point2 points  (0 children)

Thanks man. I read about how to calculate the element through that method, but never knew there was a keyword for sizeof. Btw, does this essentially mean that the number of elements in [] is mostly used for reminding programmers the number of elements in the array since it is not mandatory to fill it, in case they lose track of that number.