Software Development and Programming Careers (Official Discussion Thread)

Joined
Apr 3, 2014
Messages
71,910
Reputation
17,058
Daps
305,943
It doesn't look like it properly accounts for ordering. It looks like it would take )( as valid because both halves are there, but it's invalid because of the ordering.




You didn't specifically state ordering so that's why I didn't worry about it :mjgrin:






Heres a coding problem that doesnt require a data structure. Just string manipulation.

Return a version of the given string, where for every star (*) in the string the star and the chars immediately to its left and right are gone.
So "ab*cd" yields "ad"
and "ab**cd" also yields "ad".

example outputs:
starOut("ab*cd") → "ad"
starOut("ab**cd") → "ad"
starOut("sm*eilly") → "silly"



I will try this one between tonight and tomorrow. :ehh:
 

Obreh Winfrey

Truly Brehthtaking
Supporter
Joined
Nov 18, 2016
Messages
20,852
Reputation
25,252
Daps
131,941
edit

nvm, it's not working.
full
 
Joined
Apr 3, 2014
Messages
71,910
Reputation
17,058
Daps
305,943
Also @Neo The Resurrected ONE here's one for you: write a function that validates matching parentheses/braces/brackets.
Input: ()
Output: true
Input: {[]}()
Output: true
Input: (})
Output: false

You can assume the input will only contain a combination of ()[]{}.




A friend of mine gave me his solution:

Code:
function mathInput(values) {
if ((values.length) % 2 === 1) {
   return false;
}
const matches = {
  "{": 0,
  "}": 0,
  "(": 0,
  ")": 0,
  "[": 0,
  "]": 0
 }
const valuesSplitted = values.split('');

valuesSplitted.forEach(value => matches[value] = matches[value] + 1);

if ((matches["{"] === matches["}"]) &&
    (matches["("] === matches[")"]) &&
    (matches["["] === matches["]"])) {
    return true
 } else {
    return false
  }
}
 

Takerstani

Extraterrestrial
Supporter
Joined
May 1, 2012
Messages
2,480
Reputation
120
Daps
1,787
There are a bunch of junior developer positions on sites like Indeed and Linkedin that suddenly have popped up and require Hatchways.io technical assessments. Don't fall for it. You'll spend hours or days on an exam for jobs that don't exist. One job I applied to was for a company I'd never heard of, so, before starting the assessment I did background on the company. The site is just a generic 'business page', every link goes no where except the one back to the home page. There is no indication of any real employees, no owner/CEO, nothing. It's not a real business. After that I checked Reddit and found others had been bamboozled after going through with it, to find they give everyone the same advice that they're so close to where they need to be and buy their $6000 career training course. They're wasting a lot of people's time - I saw a ton of other people applied, as well to that non-existent business.

What made me check the business out first, was that I apply daily and thought it was curious that a bunch of businesses would suddenly want Junior Devs and they'd all, back to back, want to use this particular technical assessment platform vs. the more known ones.
 

Secure Da Bag

Veteran
Joined
Dec 20, 2017
Messages
40,036
Reputation
20,339
Daps
126,156
Also @Neo The Resurrected ONE here's one for you: write a function that validates matching parentheses/braces/brackets.
Input: ()
Output: true
Input: {[]}()
Output: true
Input: (})
Output: false

You can assume the input will only contain a combination of ()[]{}.

Alright, breh, I got it.

This is my JavaScript solution.

Code:
function matchInput (a) {
  let b;
  let c;
  a.toString('');
  if (a.includes('(') && a.includes('[') && a.includes('{') )  {
    if (a.includes(')') && a.includes(']') && a.includes('}')) {
      b = true;
      c = true;
    } else {
      b = false;
      c = false;
    }
  } else if (a.includes('(') && a.includes('[')) {
    if (a.includes(')') && a.includes(']')) {
      b = true;
      c = true;
    } else {
      b = false;
      c = false;
    }
  } else if (a.includes('(') && a.includes('{')) {
    if (a.includes(')') && a.includes('}')) {
      b = true;
      c = true;
    } else {
      b = false;
      c = false;
    }
  } else if (a.includes('{') && a.includes('[')) {
    if (a.includes('}') && a.includes(']')) {
      b = true;
      c = true;
    } else {
      b = false;
      c = false;
    }
  } else if (a.includes(')') && a.includes(']') && a.includes('}') )  {
    if (a.includes('(') && a.includes('[') && a.includes('{')) {
      c = true;
      b = true;
    } else {
      c = false;
      b = false;
    }
  } else if (a.includes(')') && a.includes(']')) {
    if (a.includes('(') && a.includes('[')) {
      c = true;
      b = true;
    } else {
      c = false;
      b = false;
    }
  } else if (a.includes(')') && a.includes('}')) {
    if (a.includes('(') && a.includes('{')) {
      c = true;
      b = true;
    } else {
      c = false;
      b = false;
    }
  } else if (a.includes('}') && a.includes(']')) {
    if (a.includes('{') && a.includes('[')) {
      c = true;
      b = true;
    } else {
      c = false;
      b = false;
    }
  } else if (a.includes(')')) {
    if (a.includes('(')) {
      c = true;
      b = true;
    } else {
      c = false;
      b = false;
    }
  } else if(a.includes('}')) {
    if (a.includes('{')) {
      c = true;
      b = true;
    } else {
      c = false;
      b = false;
    }
  } else if(a.includes(']')) {
    if(a.includes('[')) {
      c = true;
      b = true;
    } else {
      c = false;
      b = false;
    }
  } else if (a.includes('(')) {
    if (a.includes(')')) {
      b = true;
      c = true;
    } else {
      b = false;
      c = false;
    }
  } else if(a.includes('{')) {
    if (a.includes('}')) {
      b = true;
      c = true;
    } else {
      b = false;
      c = false;
    }
  } else if(a.includes('[')) {
    if(a.includes(']')) {
      b = true;
      c = true;
    } else {
      b = false;
      c = false;
    }
  } else {
    return false;
  }
  if(b && c ) {
  return true;
  } else {
    return false;
 }
}

A friend of mine gave me his solution:

Code:
function mathInput(values) {
if ((values.length) % 2 === 1) {
   return false;
}
const matches = {
  "{": 0,
  "}": 0,
  "(": 0,
  ")": 0,
  "[": 0,
  "]": 0
 }
const valuesSplitted = values.split('');

valuesSplitted.forEach(value => matches[value] = matches[value] + 1);

if ((matches["{"] === matches["}"]) &&
    (matches["("] === matches[")"]) &&
    (matches["["] === matches["]"])) {
    return true
 } else {
    return false
  }
}

Would either solution say that this is valid: { [ } ] ?
 

Rev Leon Lonnie Love

damned mine eyes, DAMNED mine eyes!!
Joined
Nov 11, 2017
Messages
21,899
Reputation
5,468
Daps
88,952
trying to ramp up and onboard in a mid-sized new company is the WOAT. :to:
So much documentation to read and still ending up more confused than the last time :mjcry:

Can't wait for the month to end so I can comfort my bruised ego with that paycheck :wow:
 

Mike809

Veteran
Supporter
Joined
Oct 15, 2015
Messages
16,098
Reputation
3,651
Daps
82,085
Reppin
Bronx
has anyone here ever done an interview through hirevue?
i have one with Chase bank , but its mostly talking alone and answering some questions while on camera.
 

Rev Leon Lonnie Love

damned mine eyes, DAMNED mine eyes!!
Joined
Nov 11, 2017
Messages
21,899
Reputation
5,468
Daps
88,952
has anyone here ever done an interview through hirevue?
i have one with Chase bank , but its mostly talking alone and answering some questions while on camera.
I have :mjgrin:


and guess what? There's a hack that can allow you to see all the questions before taking it so you can prepare before hand and ace the shyt :mjgrin:
 

Rev Leon Lonnie Love

damned mine eyes, DAMNED mine eyes!!
Joined
Nov 11, 2017
Messages
21,899
Reputation
5,468
Daps
88,952
Yeah , i kind of read about that on reddit. Something about inspecting the html code?
Provide your techniques though :feedme:
really simple. just fiddle with the url. see spoiler and replace the elements in square brackets with the relevant info. I tried it last year and it worked.
Code:
https://[company].hirevue.com/api/internal/candidates/interviews/[your_id]/?include=answers,sections,poc

let us know how it goes.
 

Obreh Winfrey

Truly Brehthtaking
Supporter
Joined
Nov 18, 2016
Messages
20,852
Reputation
25,252
Daps
131,941
really simple. just fiddle with the url. see spoiler and replace the elements in square brackets with the relevant info. I tried it last year and it worked.
Code:
https://[company].hirevue.com/api/internal/candidates/interviews/[your_id]/?include=answers,sections,poc

let us know how it goes.
:deadmanny: insecure APIs
 
Top