Skip to content

lynnagidza/alx-interview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ace172d · Sep 5, 2023

History

36 Commits
Jun 29, 2023
Jul 6, 2023
Jul 10, 2023
Jul 20, 2023
Jul 28, 2023
Aug 3, 2023
Aug 10, 2023
Aug 16, 2023
Aug 23, 2023
Aug 31, 2023
Sep 5, 2023
Aug 23, 2023
Jun 29, 2023
Sep 5, 2023

Repository files navigation

alx-interview

This repository contains projects that focus on preparing for a technical interview process.

Projects

Pascal's Triangle

This project focuses on implementing a function pascal_triangle(n) that generates Pascal's triangle of size n. The function returns a list of lists, where each inner list represents a row of Pascal's triangle.

Lockboxes

This project focuses on implementing a function canUnlockAll(boxes) that determines if all the boxes in a list of lists can be opened. Each box is numbered sequentially from 0 to n - 1 and each box may contain keys to the other boxes. The function returns True if all boxes can be opened, else it returns False.

Minimum Operations

This project focuses on solving the minimum operations problem using text editing operations. The goal is to calculate the fewest number of operations needed to result in exactly n occurrences of the character 'H' in a text file.

Log Parsing

This project focuses on implementing a script that reads stdin line by line and computes metrics. The script computes the following metrics:

  • Total file size
  • Number of lines by status code
  • Number of lines by status code, and sorted by the status code in ascending order

UTF-8 Validation

This project focuses on implementing a function validUTF8(data) that determines if a given data set represents a valid UTF-8 encoding.

N Queens

This project focuses on solving the N queens problem. The N queens problem is the challenge of placing N non-attacking queens on an N×N chessboard. The function nqueens(n) returns a list of lists containing all the possible solutions to the problem.

Star Wars API

This project focuses on making HTTP requests to the Star Wars API.

Rotate 2D Matrix

This project focuses on implementing a function rotate_2d_matrix(matrix) that rotates a 2D matrix 90 degrees clockwise.

Island Perimeter

This project focuses on implementing a function island_perimeter(grid) that returns the perimeter of the island described in grid.

Prime Game

This project focuses on implementing a function isWinner(x, nums) that determines who the winner of each game is.

Usage

To use any project in this repository, follow the instructions provided in each respective directory.

License

This project is licensed under the MIT License.

About

Technical interview preparation

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published