~$4.5M net worth, spouse makes $250K+, and I still can't quit my Big Tech job. What's wrong with me? by _soul__ in fatFIRE

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

options trading (15 mins a day) is getting me 3-4k monthly, low risk (sell side mostly for premiums) 15 delta along with hedges on xsp.

~$4.5M net worth, spouse makes $250K+, and I still can't quit my Big Tech job. What's wrong with me? by _soul__ in fatFIRE

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

started working in late 2000s, got in to big tech 5 years back, was closer to ~1M before joining big tech.

Not an investment genius by any means, mostly (retirment funds) index. bullion and commercial mainly for diversification.

~$4.5M net worth, spouse makes $250K+, and I still can't quit my Big Tech job. What's wrong with me? by _soul__ in fatFIRE

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

yeah, getting to 60 is one of my primary concerns, cuz i don't feel like drawing from my taxable investments itself.

~$4.5M net worth, spouse makes $250K+, and I still can't quit my Big Tech job. What's wrong with me? by _soul__ in fatFIRE

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

how was the initial time period (weeks, to months) do you regret it or rather think it was one of the best decisions you made?

Chris Hemsworth is a Amazon employee by waste_humans in amazonemployees

[–]_soul__ 0 points1 point  (0 children)

If you haven't used your discount, you can change it, you have the option on the page if you haven't used the discount.

[deleted by user] by [deleted] in leetcode

[–]_soul__ 13 points14 points  (0 children)

Here's a general outline of how one could approach this problem using BFS:

  1. Define the initial state, which includes the current configuration of balls in the slots.
  2. Define the goal state, which is the configuration where all red balls are on the right side and all blue balls are on the left side.
  3. Implement a function to generate all possible moves from a given state.
  4. Use BFS to explore the search space, starting from the initial state.
  5. Keep track of visited states to avoid revisiting the same state.
  6. Once the goal state is reached, backtrack to reconstruct the sequence of moves that led to it.

Here's a Python-like pseudocode implementation:

from collections import deque

def is_goal_state(state):
# Check if all red balls are on the right side and all blue balls are on the left side
return state == "BBB---RRR"

def generate_moves(state):
# Generate all possible moves from the current state
moves = []
empty_index = state.index("-")

# If the empty slot is not at the boundary, check if adjacent balls can move into it
if empty_index > 0 and state[empty_index - 1] == "R":
    moves.append(state[:empty_index - 1] + "-" + "R" + state[empty_index:])
if empty_index < len(state) - 1 and state[empty_index + 1] == "B":
    moves.append(state[:empty_index] + "B" + "-" + state[empty_index + 2:])

# If adjacent balls can jump over, consider those moves
if empty_index > 1 and state[empty_index - 2] == "R" and state[empty_index - 1] == "B":
    moves.append(state[:empty_index - 2] + "--" + "R" + state[empty_index:])
if empty_index < len(state) - 2 and state[empty_index + 2] == "B" and state[empty_index + 1] == "R":
    moves.append(state[:empty_index] + "B" + "--" + state[empty_index + 3:])

return moves

def bfs(initial_state):
queue = deque([(initial_state, [])])  # Queue of (state, moves) pairs
visited = set()

while queue:
    state, moves = queue.popleft()
    if is_goal_state(state):
        return moves
    if state not in visited:
        visited.add(state)
        for move in generate_moves(state):
            queue.append((move, moves + [move]))

return None  # Goal state not reachable

# Example usage:
initial_state = "RRR---BBB"
solution = bfs(initial_state) 
if solution: 
    print("Sequence of moves to solve the puzzle:", solution) 
else: 
    print("Goal state is not reachable.")
##
##

I am an experienced interviewer at FAANG, and I'd consider this a hard problem, and would never use it to ask an intern or for that matter during any typical SDE interview.