- Read How to answer a coding interview.
- Read Using sliding window technique to solve coding interview questions.
- Practice coding Array 1 Two Sum
- Practice coding Array 2 Three Sum
- Practice coding Array 3 Max Consecutive Ones III
- Practice coding Array 4 Maximum Product Subarray
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 0x12977be2dce14098329fb1ef5cbe93fa701d055b40fc97d5aae8b329020aecee |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| did:3:bafyreibtcr2qedgcngr2u6h6czcgtmupv2fh7ilgigulizaakqgvmobcce |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // SPDX-License-Identifier: MIT | |
| pragma solidity >=0.5.0 <0.8.0; | |
| import 'https://github.com/OpenZeppelin/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol'; | |
| import 'https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/math/Math.sol'; | |
| contract ExampleToken is ERC20 { | |
| using SafeMath for uint256; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| This post links my 3Box profile to my Github account! Web3 social profiles by 3Box. | |
| ✅ did:3:bafyreicsoll2bzvd7oe4tr5ifvfthdbjc3jz33xr4z3tfsy2icfhsem7s4 ✅ | |
| Create your profile today to start building social connection and trust online at https://3Box.io/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| <head> | |
| <title>Torus</title> | |
| </head> | |
| <body> | |
| <script | |
| src="https://app.tor.us/v0.2.12/embed.min.js" | |
| integrity="sha384-lSiHcwUwWc+IymcuPXKXIJNrAdqA69cjnB7L8VWHlSI99WbNqzM3yLzQD/M9m2jq" | |
| crossorigin="anonymous" | |
| > |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const tx = await arweave.createTransaction( | |
| { data: JSON.stringify(data) }, | |
| key | |
| ); | |
| console.log(tx); | |
| tx.addTag("App-Name", "demo"); | |
| tx.addTag("App-Version", "0.0.1"); | |
| tx.addTag("Unix-Time", Math.round(new Date().getTime() / 1000)); | |
| tx.addTag("Type", "publish"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <Input | |
| type="text" | |
| placeholder="Enter the number" | |
| onKeyDown={this.onKeyDown} | |
| /> |
This fork of JamieMason's implementation changes the key parameter to be an array of keys instead just a single key. This makes it possible to group by multiple properties instead of just one.
const groupBy = keys => array =>
array.reduce((objectsByKeyValue, obj) => {
const value = keys.map(key => obj[key]).join('-');NewerOlder