Skip to content

Commit

Permalink
change sitewise style
Browse files Browse the repository at this point in the history
  • Loading branch information
TamimEhsan committed Aug 13, 2024
1 parent f622625 commit 017f5e2
Show file tree
Hide file tree
Showing 13 changed files with 133 additions and 206 deletions.
18 changes: 18 additions & 0 deletions .vitepress/theme/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
details {
border-color: var(--vp-custom-block-details-border);
color: var(--vp-custom-block-details-text);
background-color: var(--vp-custom-block-details-bg);
border-radius: 8px;
padding: 16px 16px 8px;
line-height: 24px;
font-size: var(--vp-custom-block-font-size);
margin-bottom: 8px
}

summary {
margin: 0 0 8px!important;
font-weight: 700;
cursor: pointer;
-webkit-user-select: none;
user-select: none;
}
5 changes: 5 additions & 0 deletions .vitepress/theme/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// .vitepress/theme/index.js
import DefaultTheme from 'vitepress/theme'
import './custom.css'

export default DefaultTheme
9 changes: 3 additions & 6 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Use pull requests to contribute to the project.

### Adding a New Company
If the company eg `Generic Company Ltd` is not in the list, then create a new file for the company in root folder eg `generic.md`, then add that in the table of contents in `/vitepress/config.mjs`. In the json file, find the items in themeConfig.sidebar.items. And add your new entry here
If the company eg `Generic Company Ltd` is not in the list, then create a new file for the company in root folder eg `generic.md`, then add that in the table of contents in `/vitepress/config.mjs`. In the json file, find the items in themeConfig.sidebar.items. And add your new entry here. If you feel like this is too much hassle, then just mention it in the pull request. I will add it later.

```json
items: [
Expand Down Expand Up @@ -39,20 +39,17 @@ Stick to the following format to add a question under a company:
<summary>
[Question]
</summary>
<br>
<hr>
[Answer]
<br>
</details>
```
Example:
<details>

<summary>
What is 1+1?
</summary>
<br/>
<hr>
1+1 equals 3
<br/>
</details>


Expand Down
76 changes: 28 additions & 48 deletions chaldal.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,38 +15,37 @@ Chaldal interview process has 3 stage
<summary>
Tell me about yourself? Why do you want to join chaldal
</summary>
<br>
<hr>
Answer varies from person to person
<br>

</details>

<details>
<summary>
You have been provided a spiral matrix of size NXN along with a coordinate (x, y) as follows. Find the element at the position (x, y) of the matrix.
N = 4, x = 2, y =1

```math
$$\begin{bmatrix}
1 & 2 & 3 & 4 \\
12 & 13 & 14 & 5 \\
11 & 16 & 15 & 6 \\
10 & 9 & 8 & 7
\end{bmatrix}$$
```
<table >
<tr><td>1</td><td>2</td><td>3</td><td>4</td></tr>
<tr><td>12</td><td>13</td><td>14</td> <td>5</td></tr>
<tr> <td>11</td> <td>16</td><td>15</td><td>6</td></tr>
<tr><td>10</td> <td>9</td><td>8</td><td>7</td></tr>
</table>

</summary>
<br>
<hr>

```C++
The element at position (2, 1) is **12** [*indexed at (1, 0)*]
```
<br>
</details>
<details>
<summary>
Given a number in roman format. Convert it to arabic numeral.
</summary>
<br>
<hr>
```C++
Expand Down Expand Up @@ -75,80 +74,71 @@ int RomanToArabic(string R){
}
```

<br>
</details>


<details>
<summary>
Given a string of characters. Reverse the string without using any library function.
</summary>
<br>
<hr>
[Answer]
<br>
</details>


<details>
<summary>
Given a string of characters. Check if the given string is a palindrome.
</summary>
<br>
<hr>
[Answer]
<br>
</details>

<details>
<summary>
Given an positive integer n. Find the sum of even fibonacchi number upto nth term.
</summary>
<br>
<hr>
[Answer]
<br>
</details>

<details>
<summary>
Given a string of characters [0-9]. Convert it to integer.
</summary>
<br>
<hr>
[Answer]
<br>
</details>

<details>
<summary>
Given an array of integers. Generate all possible permutation of the given array.
</summary>
<br>
<hr>
[Answer]
<br>
</details>

<details>
<summary>
Given an array of integers. Generate all possible subset of the given array.
</summary>
<br>
<hr>
[Answer]
<br>
</details>

<details>
<summary>
Given a regex expression and a string. Check if the regex expression matches with the string.
</summary>
<br>
<hr>
[Answer]
<br>
</details>

<details>
<summary>
Each student is assigned to an assignment at a particular location at a specific time. Are there any inconsistencies in the assignments ? Find at least one of them by looking into the input. Then write a code to print all inconsistencies in the assignments.
</summary>

<br>
<hr>

```C++

Expand Down Expand Up @@ -224,15 +214,13 @@ int main() {

```

<br>
</details>

<details>
<summary>
Implement Game of Life
</summary>

<br>
<hr>

__________________
|██ 
Expand Down Expand Up @@ -316,7 +304,6 @@ else next_gen_mat[i][j] = false;

```
<br>
</details>
Expand All @@ -326,12 +313,11 @@ else next_gen_mat[i][j] = false;
<summary>
Find digits from a string( Leading zeroes doesn't get counted)
</summary>
<br>
<hr>
```
```
<br>
</details>
<details>
Expand All @@ -340,31 +326,29 @@ Given a string s containing lowercase lattin letters and another string p contai
Print yes or no if both strings matches. [RegEx Matching]
</summary>
<br>
<hr>
```
```
<br>
</details>
<details>
<summary>
About project: What have you done in the authentication part in your project? Also how did you specify roles for different users.
</summary>
<br>
<hr>
```
```
<br>
</details>
<details>
<summary>
Write a function which converts decimal number to hexadecimal
</summary>
<br>
<hr>
```C++
string decimalToHexa(int decimal){
Expand All @@ -382,29 +366,26 @@ string decimalToHexa(int decimal){
}
```

<br>
</details>

<details>
<summary>
Write a function which finds all the subset of a given set.
</summary>
<br>
<hr>

```
```

<br>
</details>

<details>
<summary>
Given a set of orderings of letters, determine their topological sorting order. The orderings are provided as strings.
For example, given the input ["A>B", "B>C", "C>D"], the expected output is "ABCD".
</summary>
<br>
<hr>
[Answer]
<br>
</details>

<details>
Expand All @@ -413,7 +394,6 @@ Given two numbers represented as arrays of characters in decimal format, add the
For example, Input: ['1', '2', '3'] and ['4', '5', '6']
Output: Output: ['5', '7', '9']
</summary>
<br>
<hr>
[Answer]
<br>
</details>
6 changes: 2 additions & 4 deletions dsi.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ The second stage is face to face interview
<summary>
There is an array initially containing n numbers. then each of the numbers of the array is multiplied by 2. Now the array is 2 * n size and each element of the array gets shuffled. You are given the shuffled array of size 2 * n. You have to restore the original array.
</summary>
<br>
<hr>

```C++
bool restoreDouble(vector<int> input,vector<int>& output){
Expand All @@ -32,14 +32,12 @@ bool restoreDouble(vector<int> input,vector<int>& output){
return true;
}
```
<br/>
</details>
<details>
<summary>
Given n inputs each with n bits. Output a number not given which has n bits too.
</summary>
<br>
<hr>
[Answer]
<br>
</details>
Loading

0 comments on commit 017f5e2

Please sign in to comment.