Software Development and Programming Careers (Official Discussion Thread)

Mike809

Veteran
Supporter
Joined
Oct 15, 2015
Messages
16,098
Reputation
3,651
Daps
82,104
Reppin
Bronx
Over 3 years. I've been able to get close to market after starting way under. I haven't been chasing salary though. If this next interview pans out then I should be getting a solid jump.
Yeah , i read on https://www.reddit.com/r/cscareerquestions/
how after having a few years of experience ....recruiters are the ones chasing you down for interviews and such.

how people are able to double their salary just by job hopping.
 

Obreh Winfrey

Truly Brehthtaking
Supporter
Joined
Nov 18, 2016
Messages
20,852
Reputation
25,252
Daps
131,941
Yeah , i read on https://www.reddit.com/r/cscareerquestions/
how after having a few years of experience ....recruiters are the ones chasing you down for interviews and such.

how people are able to double their salary just by job hopping.
Yeah, just keep your LinkedIn up to date and they'll come for you. After 2 years I was getting increased interest. Now I get a bunch - it's not always relevant, but it's a steady flow. Also the FANG companies will eventually reach out to you if you've applied to them in the past. Amazon, for example, comes knocking around 6 months after your last interview. I've had like 4, 5 Amazon recruiters reach out within 2 days before.
 

Rev Leon Lonnie Love

damned mine eyes, DAMNED mine eyes!!
Joined
Nov 11, 2017
Messages
21,901
Reputation
5,468
Daps
88,957
CD drive :picard:

We going back into the caveman era around here @Obreh Winfrey


And as far more space. I got a couple portable 2tb flash drives. :lolbron: @DEAD7



But, no cap though, I feel you on being able to tweak and customize shyt. :hubie:
CD-drive already been bushed first day I got it. Got me a 12.7 caddy and slapped a 1TB hdd on it and used an SSD on the main drive for the OS and then upped the RAM to 16GB. Only thing left to replace is the shytty 736p panel :francis:, but im not in a rush since this machine is connected to an external IPS 27" monitor.

I refuse to buy a non-upgradable laptop after having 2 useless laptops now taking up space because their stock hardware couldnt keep up with the times.
 

Obreh Winfrey

Truly Brehthtaking
Supporter
Joined
Nov 18, 2016
Messages
20,852
Reputation
25,252
Daps
131,941
Man, I hate how dead this thread is. Let's breathe some life back into this place with some coding challenges, brehs.

I'm going to come up with a Javascript solution for this, but feel free to solve it using the language of your choice.

Code:
Subtract the sum
NOTE! This kata can be more difficult than regular 8-kyu katas (lets say 7 or 6 kyu)

Complete the function which get an input number n such that n >= 10 and n < 10000, then:

Sum all the digits of n.
Subtract the sum from n, and it is your new n.
If the new n is in the list below return the associated fruit, otherwise return back to task 1.
Example
n = 325
sum = 3+2+5 = 10
n = 325-10 = 315 (not in the list)
sum = 3+1+5 = 9
n = 315-9 = 306 (not in the list)
sum = 3+0+6 = 9
n =306-9 = 297 (not in the list)
.
.
.
...until you find the first n in the list below.

There is no preloaded code to help you. This is not about coding skills; think before you code

1-kiwi
2-pear
3-kiwi
4-banana
5-melon
6-banana
7-melon
8-pineapple
9-apple
10-pineapple
11-cucumber
12-pineapple
13-cucumber
14-orange
15-grape
16-orange
17-grape
18-apple
19-grape
20-cherry
21-pear
22-cherry
23-pear
24-kiwi
25-banana
26-kiwi
27-apple
28-melon
29-banana
30-melon
31-pineapple
32-melon
33-pineapple
34-cucumber
35-orange
36-apple
37-orange
38-grape
39-orange
40-grape
41-cherry
42-pear
43-cherry
44-pear
45-apple
46-pear
47-kiwi
48-banana
49-kiwi
50-banana
51-melon
52-pineapple
53-melon
54-apple
55-cucumber
56-pineapple
57-cucumber
58-orange
59-cucumber
60-orange
61-grape
62-cherry
63-apple
64-cherry
65-pear
66-cherry
67-pear
68-kiwi
69-pear
70-kiwi
71-banana
72-apple
73-banana
74-melon
75-pineapple
76-melon
77-pineapple
78-cucumber
79-pineapple
80-cucumber
81-apple
82-grape
83-orange
84-grape
85-cherry
86-grape
87-cherry
88-pear
89-cherry
90-apple
91-kiwi
92-banana
93-kiwi
94-banana
95-melon
96-banana
97-melon
98-pineapple
99-apple
100-pineapple



@kevm3 @humminbird @Obreh Winfrey @Gold @Joe Blow Thee Lover Man
Subtract the Sum Kata ($2221689) · Snippets · Snippets · GitLab
 
Joined
Apr 3, 2014
Messages
71,910
Reputation
17,058
Daps
305,944
Man, I hate how dead this thread is. Let's breathe some life back into this place with some coding challenges, brehs.

I'm going to come up with a Javascript solution for this, but feel free to solve it using the language of your choice.

Code:
Subtract the sum
NOTE! This kata can be more difficult than regular 8-kyu katas (lets say 7 or 6 kyu)

Complete the function which get an input number n such that n >= 10 and n < 10000, then:

Sum all the digits of n.
Subtract the sum from n, and it is your new n.
If the new n is in the list below return the associated fruit, otherwise return back to task 1.
Example
n = 325
sum = 3+2+5 = 10
n = 325-10 = 315 (not in the list)
sum = 3+1+5 = 9
n = 315-9 = 306 (not in the list)
sum = 3+0+6 = 9
n =306-9 = 297 (not in the list)
.
.
.
...until you find the first n in the list below.

There is no preloaded code to help you. This is not about coding skills; think before you code

1-kiwi
2-pear
3-kiwi
4-banana
5-melon
6-banana
7-melon
8-pineapple
9-apple
10-pineapple
11-cucumber
12-pineapple
13-cucumber
14-orange
15-grape
16-orange
17-grape
18-apple
19-grape
20-cherry
21-pear
22-cherry
23-pear
24-kiwi
25-banana
26-kiwi
27-apple
28-melon
29-banana
30-melon
31-pineapple
32-melon
33-pineapple
34-cucumber
35-orange
36-apple
37-orange
38-grape
39-orange
40-grape
41-cherry
42-pear
43-cherry
44-pear
45-apple
46-pear
47-kiwi
48-banana
49-kiwi
50-banana
51-melon
52-pineapple
53-melon
54-apple
55-cucumber
56-pineapple
57-cucumber
58-orange
59-cucumber
60-orange
61-grape
62-cherry
63-apple
64-cherry
65-pear
66-cherry
67-pear
68-kiwi
69-pear
70-kiwi
71-banana
72-apple
73-banana
74-melon
75-pineapple
76-melon
77-pineapple
78-cucumber
79-pineapple
80-cucumber
81-apple
82-grape
83-orange
84-grape
85-cherry
86-grape
87-cherry
88-pear
89-cherry
90-apple
91-kiwi
92-banana
93-kiwi
94-banana
95-melon
96-banana
97-melon
98-pineapple
99-apple
100-pineapple



@kevm3 @humminbird @Obreh Winfrey @Gold @Joe Blow Thee Lover Man






Yo this is way harder than I thought it would be:russ:.

Got me over here like
math-thinking.gif
 
Joined
Apr 3, 2014
Messages
71,910
Reputation
17,058
Daps
305,944
Man, I hate how dead this thread is. Let's breathe some life back into this place with some coding challenges, brehs.

I'm going to come up with a Javascript solution for this, but feel free to solve it using the language of your choice.

Code:
Subtract the sum
NOTE! This kata can be more difficult than regular 8-kyu katas (lets say 7 or 6 kyu)

Complete the function which get an input number n such that n >= 10 and n < 10000, then:

Sum all the digits of n.
Subtract the sum from n, and it is your new n.
If the new n is in the list below return the associated fruit, otherwise return back to task 1.
Example
n = 325
sum = 3+2+5 = 10
n = 325-10 = 315 (not in the list)
sum = 3+1+5 = 9
n = 315-9 = 306 (not in the list)
sum = 3+0+6 = 9
n =306-9 = 297 (not in the list)
.
.
.
...until you find the first n in the list below.

There is no preloaded code to help you. This is not about coding skills; think before you code

1-kiwi
2-pear
3-kiwi
4-banana
5-melon
6-banana
7-melon
8-pineapple
9-apple
10-pineapple
11-cucumber
12-pineapple
13-cucumber
14-orange
15-grape
16-orange
17-grape
18-apple
19-grape
20-cherry
21-pear
22-cherry
23-pear
24-kiwi
25-banana
26-kiwi
27-apple
28-melon
29-banana
30-melon
31-pineapple
32-melon
33-pineapple
34-cucumber
35-orange
36-apple
37-orange
38-grape
39-orange
40-grape
41-cherry
42-pear
43-cherry
44-pear
45-apple
46-pear
47-kiwi
48-banana
49-kiwi
50-banana
51-melon
52-pineapple
53-melon
54-apple
55-cucumber
56-pineapple
57-cucumber
58-orange
59-cucumber
60-orange
61-grape
62-cherry
63-apple
64-cherry
65-pear
66-cherry
67-pear
68-kiwi
69-pear
70-kiwi
71-banana
72-apple
73-banana
74-melon
75-pineapple
76-melon
77-pineapple
78-cucumber
79-pineapple
80-cucumber
81-apple
82-grape
83-orange
84-grape
85-cherry
86-grape
87-cherry
88-pear
89-cherry
90-apple
91-kiwi
92-banana
93-kiwi
94-banana
95-melon
96-banana
97-melon
98-pineapple
99-apple
100-pineapple



@kevm3 @humminbird @Obreh Winfrey @Gold @Joe Blow Thee Lover Man

yoooooo @Obreh Winfrey @dontreadthis I solved it, y'all :russ::russ::russ:


I'm over here celebrating like I won the Super Bowl or something. This is the hardest coding problem I've ran into in a MINUTE. Had me worried for a sec since I told @Obreh Winfrey that I was gonna solve it before I went to bed and I didn't want breh to think I'm a liar :russ:



Anyway, here's my solution in Javascript. It looks like crap, I'm not refactoring this tonight so it is what it is. It works perfectly tho. :pachaha:



Code:
function SubtractSum(n){
  function valueOfN(n) {
  if (n >= 10 && n < 10000) {
    let hold = 0;
    let b = n.toString().split('').map(Number);
    for(let i = 0; i < b.length; i++) {
      hold += b[i];
    }
    return n = n - hold;
  }
  } let x = valueOfN(n);
    let b = returnWord(x);
    return b;

  function returnWord(n) {
    if (n === 1 || n === 3 || n === 24 || n === 26 || n === 47 || n === 49 || n === 68 || n === 70 || n === 91 || n === 93) {
      return 'kiwi';
    } else if (n === 2 || n === 21 || n === 23 || n === 42 || n === 44 || n === 46 || n === 65 || n === 67 || n === 69 || n === 88 ) {
      return 'pear';
    } else if (n === 4 || n === 6 || n === 25 || n === 29 || n === 48 || n === 50 || n === 71 || n === 73 || n === 92 || n === 94 || n === 96) {
      return 'banana';
    } else if (n === 5 || n === 7 || n === 28 || n === 30 || n === 32 || n === 51 || n === 53 || n === 74 || n === 76 || n === 95 || n === 97) {
      return 'melon';
    } else if (n === 8 || n === 10 || n === 12 || n === 31 || n === 33 || n === 52 || n === 56 || n === 75 || n === 77 || n === 79 || n === 98 || n === 100) {
      return 'pineapple';
    } else if (n === 9 || n === 18 || n === 27 || n === 36 || n === 45 || n === 54 || n === 63 || n === 72 || n === 81 || n === 90 || n === 99) {
      return 'apple';
    } else if (n === 11 || n === 13 || n === 34 || n === 55 || n === 57 || n === 59 || n === 78 || n === 80) {
      return 'cucumber';
    } else if (n === 14 || n === 16 || n === 35 || n === 37 || n === 39 || n === 58 || n === 60 || n === 83) {
      return 'orange';
    } else if (n === 15 || n === 17 || n === 19 || n === 38 || n === 40 || n === 61 || n === 82 || n === 84 || n === 86) {
      return 'grape';
    } else if (n === 20 || n === 22 || n === 41 || n === 43 || n === 62 || n === 64 || n === 66 || n === 85 || n === 87 || n === 89) {
      return 'cherry';
    } else {
      for(i = n; i > 100; i--) {
        let x = valueOfN(n);
        let b = returnWord(x);
        return b;
      }
    }
  }
}




That was some good code cardio. Imma sleep good tonight like :ahh:
 

Obreh Winfrey

Truly Brehthtaking
Supporter
Joined
Nov 18, 2016
Messages
20,852
Reputation
25,252
Daps
131,941
When you get a chance, put it in here to test it:

Training on Subtract the Sum | Codewars
Had to make a couple of changes, missing semi colon, static/non-static issues. My main issue was having to change from a while to a do/while. Didn't catch that you had to do the digit sum then check. Initially I was checking if n was in the map and exiting early. I just thought they fed you a bad initial test case.

Same link: Subtract the Sum Kata ($2221689) · Snippets · Snippets · GitLab
 
Joined
Apr 3, 2014
Messages
71,910
Reputation
17,058
Daps
305,944
Had to make a couple of changes, missing semi colon, static/non-static issues. My main issue was having to change from a while to a do/while. Didn't catch that you had to do the digit sum then check. Initially I was checking if n was in the map and exiting early. I just thought they fed you a bad initial test case.

Same link: Subtract the Sum Kata ($2221689) · Snippets · Snippets · GitLab





Did you get that it's a trick problem?:lolbron:

I didn't realize it till I finished :mjlol:
 
Top