Город МОСКОВСКИЙ
00:09:56

Word Frequency (LeetCode) Problem | Bash scripting

Аватар
MySQL Запрос
Просмотры:
23
Дата загрузки:
08.12.2023 04:06
Длительность:
00:09:56
Категория:
Обучение

Описание

In this video word frequency one of the leetcode problem is solved using bash scripting. I solved this problem with the help of (tr, sort, uniq, awk) bash commands.

******************************************************************************
Solution:
cat words.txt | tr " " "\n" | tr -s "\n" | sort | uni -c | sort -r | awk '{print $2" "$1}'
******************************************************************************

Instagram : bobby0bash_
Link :https://www.instagram.com/bobby0bash_/
LinkedIn : Sridhar R
Tweets : @SridharMedia
Link :https://twitter.com/SridharMedia/

******************************************************************************

Discord Link:-
https://discord.gg/Aw5AbEen

******************************************************************************

Contents:
00:00 Intro
00:08 Problem

Рекомендуемые видео